I agree with elleoco.
That said, it's possible. But it's an absolute travesty to humanity. What you must due to achieve this is to create a fixed-layout book, which can be done for ebooks.
https://kdp.amazon.com/en_US/help/topic/GEGU359TQLKDJZZHhttps://kdp.amazon.com/en_US/help/topic/GFFHCXVPHRZW8SJ5This is an awful idea. You have to create fixed font sizes and embed your own fonts. It's a very bad reading experience, and directly goes against why some people buy eBooks over print. For a book that's mostly text, this will look like someone did an awful job of formatting. Fixed-layout books are meant for e.g. text on top of background images, e.g. a kid's book.
The process to do this is involved. I don't know that it would be possible to do in other tools like InDesign. But you can achieve this with hard coding your epub file. The main reason why this is technically possible, but logically infeasible, is that as far as I can tell, you have to manually specify every page break yourself by creating a new xhtml file. That means you'd have to go through every single page in your book with your fixed layout, and determine where you need page breaks so that the content stays within the square boundaries provided. Just insane.
But here's how you do it:
Add extra tags to your .opf file metadata section to indicate this is a fixed-layout book: (you will need to choose which orientation to use, and the size of the square)
<meta property="rendition:layout">prepaginated</meta>
<meta name="fixed-layout" content="true"/>
<meta name="orientation-lock" content="portrait"/>
<meta name="original-resolution" content="600x600"/>
Add styles to your "<head>" element of each XHTML file or in your CSS stylesheet
<style>
p {
font-size: 12px;
text-indent: 12px;
}
div.page {
height: 600px;
width: 600px;
position: relative;
}
div.content {
margin-left: 12px;
margin-right: 12px;
}
</style>
Add the necessary divs to your XHTML pages, e.g.
<body>
<div class="page">
<div class="content">
<p>Paragraph!</p>
</div>
</div>
</body>
I tested this in Kindle Previewer, but I'm by no means a professional formatter.