View Single Post
Old 11-05-2009, 07:55 AM   #1
Arjen
Member
Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.Arjen puts his or her pants on both legs at a time.
 
Posts: 15
Karma: 133282
Join Date: Nov 2009
Location: Amersfoort, the Netherlands
Device: iPhone
Centered and right aligned text for Stanza on iPhone

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.
Arjen is offline   Reply With Quote