View Single Post
Old 04-04-2011, 07:35 AM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by norway1456 View Post
Any ideas to a unit that does not increase with increasing font-sizes and looks reasonable(TM) in most reading devices and independent of screen size and resolution?
"mm", "in", "pt"... those are absolute units and should remain constant whatever the font size, screen and resolution.

Note that using percent in heights (or vertical margins) will often not give you what you expect, because, unless you fix the height of some container block, there is no vertical length the percent can refer to. You'd expect it to refer to the screen height, but as far as I know, this is not in the spec, and there's no guaranty any reading software behaves like that.

For the moment I'd advise you not to try to do any "clever" things with page layout and use simple blocks with sensible margins instead, it's much less prone to breaking and can look relatively fine in most circumstances.
Jellby is offline   Reply With Quote