View Single Post
Old 08-27-2024, 06:17 PM   #54
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 479
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Another oddity. The following renders centered as epub in Calibre's viewer, but as left aligned as kepub on my Kobo:

css:
Code:
p.center {
  text-align: center;
  text-indent: 0%;
  margin-top: 5%;
}
text:
Code:
<p class="center"><b>LOREM</b><br/>
<b>IPSUM</b><br/>
<b>DOLOR?</b></p>
Oddly, headings are properly centered:

Code:
h1 {
  font-size: medium;
  text-align: center;
  text-indent: 0%;
  margin-top: 10%;
  font-weight: bold;
}
How to fix?

FWIW, I've had similar issues in other books. To be clear, these are commercial books from large publishers that I'm trying to clean up.

Last edited by foosion; 08-27-2024 at 06:21 PM.
foosion is offline   Reply With Quote