View Single Post
Old 05-03-2010, 11:18 AM   #10
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,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I believe the "best" way would be some combination of absolute and relative units, with a stepwise multi-variable function definition (if font size is smaller than x, then do this, else do that; if screen width is larger than x, then do this, else do that). In CSS3 there is the calc function, that could be useful, but it's missing max/min operators anyway. ADE's conditional styling could be used too, but it's not a standard feature.

I usually set all lengths in em units, even margins, but I don't define the body margin, but the margins for blockquotes, poetry, etc.
Jellby is offline   Reply With Quote