View Single Post
Old 08-02-2013, 07:59 PM   #161
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,257
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by speakingtohe View Post
Could you tell me how I would go about modifying line height in a typical calibre converted epub?

I put line-height: 1.0; in the kobo_extra.css file and it is there but no effect on the epub. The line-height is appended, but not removed elsewhere.
The plugin doesn't remove all existing occurrences of line-height. It only does that for widows & orphans and @page.

If you know that your epubs have all been calibre-converted at some point then you may be able to use kobo_extra.css to override the Kobo's own line-height setting on the font adjustment screen, but it will depend on how much each epub is riddled with other line-height settings.

Try adding something like
Code:
body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, body.book, body.epub {
    line-height: 1.0
    }
to your kobo_extra.css file. If that isn't successful enough you could try adding div, p to the selector list, i.e.
Code:
body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, body.book, body.epub, div, p {
    line-height: 1.0
    }
and see if that 'catches' more of your epubs. But it may also change line-height settings you wish it hadn't.

Just be aware that if this does work for any given epub, it is likely that the Kobo's own line spacing adjustment bar will no longer work for that epub -- but you may not care about that.

Last edited by jackie_w; 08-02-2013 at 08:03 PM. Reason: typos
jackie_w is offline   Reply With Quote