View Single Post
Old 04-27-2013, 03:56 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 35,983
Karma: 17083916
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by ShellShock View Post
I use Sigil to set the line-height in the stylesheet, usually on the p tag, e.g.,

Code:
p
{
    line-height: 1.2em;
}
If there is already a p tag in the stylesheet then you need to add it to that. You can also be more selective--perhaps you do not want to set the line-height for all paragraphs, but only for some styles?
Actually, do the following and it will work better overall...

Code:
 p, div, h1, h2 {
line-height 1.2em
}
Put that at the top of the CSS and if there are any other styles used that change the line-height, that will override your 1.2em and if not, your 1.2em will work as is for all those.

Quote:
Also, some epubs do not use p tags for paragraphs, they may use divs or spans. This is annoying, but with Sigil you can easily check for this.
A span is not a paragraph level tag. So it doesn't need a line-height to change the Kobo default.
JSWolf is offline   Reply With Quote