View Single Post
Old 05-26-2016, 03:54 PM   #47
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by Doonge View Post
As long as the line spacing is superior than 1 (which should be, less than 1 harms seriously readibility right?), nothing happens would be my guess and it behaves as expected. I just tried this with calibre on my computer, I did not test on an ereader so perhaps you know more than I do.
If the line-height of the raise-cap is set to zero then it works even if the user sets the line spacing below 1. e.g.
Code:
span.raise-cap {
  font-size: 3em;
  line-height: 0;
}
p.opening-para {
  text-indent: 0;
  padding-top: 2em;
}

<p class="opening-para"><span class="raise-cap">T</span>his raise-cap doesn't affect the line-height of the paragraph.</p>
GeoffR is offline   Reply With Quote