Quote:
Originally Posted by Turtle91
...
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

)