View Single Post
Old 08-31-2011, 05:49 AM   #8
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Using a line-height of 0 is often safe, but there are occasions where you can run into trouble. Look at the attached ePubs in ADE for an example.

Unfortunately CSS2 isn't flexible enough to allow changes to both font size and leading while retaining the integrity of the design. Of course that hasn't stopped some UserAgents from offering the ability to stomp all over it.

[Edit] Oh, and I was wrong earlier, it's best not to stick line-height: 1.2em in your body tag unless you want to adjust line-heights on all your headings as well. Do it in the p tag or create a div selector with it which will be used to enclose the body text.
Attached Files
File Type: epub LHComputed.epub (2.4 KB, 243 views)
File Type: epub LH0.epub (2.3 KB, 236 views)
File Type: epub LH048.epub (2.3 KB, 226 views)

Last edited by charleski; 08-31-2011 at 05:54 AM.
charleski is offline   Reply With Quote