View Single Post
Old 01-11-2019, 09:03 AM   #262
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by dmapr View Post
Does that override the CSS justification rules applied at the p/div level? Or only default/body level?
As usual with Kobo CSS, the answer depends on whether you're talking about epub or kepub.

Kobo's current override defaults when using the Aa font menu:
epub:
Code:
body {text-align: %1 !important;}
body {line-height: %1 !important;}
body, p { font-family: -ua-default !important;}
kepub:
Code:
div, p {text-align: %1 !important;}
body, p { line-height: %1 !important; }
* { font-family: %1 !important; }
In general, kepub uses more aggressive overrides. Which override policy is "better" is entirely subjective and will usually depend on how much TLC you've put into correcting the book's own internal CSS

No matter what the current defaults are, there are a few Kobo patches available to change override defaults for those who want them.
jackie_w is offline   Reply With Quote