View Single Post
Old 06-16-2010, 01:37 PM   #6
noname879
Junior Member
noname879 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2010
Device: ipod
Quote:
Originally Posted by Arjen View Post
I've tried to find the answer by searching in the MobileRead forums, but haven't been able to find it

I'm currently trying to convert an ebook from HTML (exported by Word) to EPUB. Using Sigil I was able to convert the entire book to EPUB compatible HTML in minutes.

Now on to my problem:

Text in styles <h1>, <h2> etc all have the attribute text-align:center;

<h1> and <h2> are used for book title and chapter titles (eg. <h2>Chapter I</h2>), and are displayed centered in Stanza.

I also have a

p.centered, div.centered {text-align:center;}

in my CSS, but any paragraph formatted with

<p class="centered"> or <div class="centered">

is still displayed left aligned.

Can anyone shed some light on what I might be doing wrong? Thanks in advance.
use "!important", it will work in stanza.
like:
p.centered, div.centered {text-align: center !important;}
noname879 is offline   Reply With Quote