View Single Post
Old 03-21-2024, 02:50 AM   #13
Jane Eyre
Zealot
Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.
 
Jane Eyre's Avatar
 
Posts: 126
Karma: 6368
Join Date: Nov 2018
Location: Italy
Device: Kindle P.white3/Kobo Clara 2E
Quote:
Originally Posted by jackie_w View Post
The Kobo Adobe reading app, used for standard epub, applies override CSS:
Code:
body {text-align: %1 !important;}
and the Kobo kepub reading app applies override CSS:
Code:
div, p { text-align: %1 !important;}
where %1 is the value you selected in the Kobo's [Aa] menu Justification buttons.

So if your epub's HTML/CSS for scenebreaks is something like:

Code:
<p class="center">***</p>

.center {text-align: center}
then the scenebreaks in an epub will be centred no matter what alignment option you set in the [Aa] menu. However the same code in a kepub will not be centred if you set the alignment in the [Aa] menu to anything other than 'Off' (i.e. don't apply alignment override CSS).
I know nothing about %1 in css. I don't use that in my sheets, but if it was something similar setted in my purchased ebooks, I've no idea.

Quote:
Originally Posted by jackie_w View Post
These users are at liberty to use existing kobopatches to change override CSS to something more (or less) heavy-handed.
For God's sake no! Gosh.. no no. I 've never put myself in quicksands with patches, hacking or some similar stuff.
Jane Eyre is offline   Reply With Quote