Quote:
Originally Posted by BetterRed
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.