View Single Post
Old 07-31-2017, 03:19 PM   #14
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,534
Karma: 169115146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by icallaci View Post
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%;
}
DNSB is offline   Reply With Quote