Quote:
Originally Posted by RbnJrg
Vertical centering is not so difficult as it seems. Try this code:
[...]
In order that the font-size doesn't affect the centering, margins and paddings (if any) must be in PIXELS.
|
That's the problem, there is no (consistent, reliable) way of referring to the screen height, so you must use a fixed vertical size, but that may break things badly. What if someone reads it in a phone with a smaller screen? Or in landscape orientation? And it doesn't work as intended in larger screens either.