View Single Post
Old 03-22-2019, 06:55 PM   #8
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,279
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Quote:
Originally Posted by BetterRed View Post
If the epub came from calibre conversion there'll probably be something like this for chapter headers in the xhtml files:

Code:
<h2 id="calibre_toc_3" class="calibre5">Chapter Two </h2>
And in the stylesheet.css there'll probably be something like this

Code:
.calibre5 {
    display: block;
    font-size: 1.375em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.83em
    }
If you add the text-align centre into the calibre5 definition then everything that uses calibre5 will be centred.

Because the epub came from calibre conversion there's a good chance chapter headings will be the only things that will use that particular css class - use Search make sure that's true. It won't necessarily be 'calibre5' could be 'calibre101'

BR

This is exactly what I discovered today. Funny how I have been at this for a few years now but am learning new things. I have had to go back and completely re-edit previous books because they were so badly done because of my lack of understanding. The worst part is having to wait until I come across the bad book when trying to read it for the first time and realizing I need to go to the computer to edit it and resend it to my Kindle before I can move forward.
Rellwood is offline   Reply With Quote