View Single Post
Old 05-14-2011, 03:30 AM   #31
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,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
does line -height also default to 1em?

i oftern see 1.2 em in CSS but have not messed with that to date
I'm afraid the default line-height is unpredictable, it varies among readers and browsers, but I'd say it's typically around 1.1-1.2 em.

The "right" line-height is also different depending on the font (and the user). Some fonts are created such that their characters completelly fill the em-box, and sometimes even spill outside of it. If, for these fonts, you use a line-height of 1em (which means the em-boxes are just stacked with no space), the characters in consecutive lines can touch and overlap. Some other fonts have their characters defined completelly inside the em-box, and with some breathing space above and below. For these fonts a line-height of 1em may look fine, but, for a given font-size, the characters look smaller. (See here.)
Jellby is offline   Reply With Quote