Quote:
Originally Posted by icallaci
I always remove any line-height properties except for initial capitals and superscripts/subscripts, which I had been setting to 1. I've found that 0 works better for those. If I remove line-height from paragraph styles, I don't run into the problem you show in your images at all. So the only line-height properties remaining in my epubs are for <span> or <sup>/<sub> and 0 works great for those.
|
The following is what I use for sub/superscripts without having extra space added between lines. I put line-height: 1.2; in the body class since I find it the easiest on my eyes. For chapter headings and other text where I want the white space, I use various margins. For initial/dropcaps, I have several styles to choose from depending on what appearance I want using various margin values to align the capital with the text.
Code:
sub {
font-size: 0.675em;
vertical-align: sub;
vertical-align: -20%;
}
sup {
font-size: 0.675em;
vertical-align: super;
vertical-align: 35%;
}