View Single Post
Old 09-15-2024, 12:16 PM   #18
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Turtle91 View Post
...
On this example I changed the vh to 95 (95% of viewable height) to accountfor any lost space due to the renderer mis-reporting. This will leave a little bit of space at the bottom, but should look fine.
...
Technically, your solution is right. However, it can be an issue with some epub2 ereaders (i.e. ADE) that they won't honor the "vh" unit. So, instead of "vh", you need to employ "%". But "%" won't work unless you also define the following:

Code:
html, body {height: 100%}
If this is only for one page (a title page for example), it will work; but if is more than one page, the following pages won't be showed.

And to avoid your issues with margins (and also paddings and borders) you could use the property "box-sizing: border-box"; but again the property won't be honored by many epub2 ereaders. Today, epub2 is more a problem than a solution To me it's totally deprecated (but I still have to use epub2 properties and code )
RbnJrg is online now   Reply With Quote