View Single Post
Old 08-21-2010, 12:59 AM   #1
Haidon
Member
Haidon is on a distinguished road
 
Posts: 19
Karma: 69
Join Date: Jul 2008
Device: Sony PRS-505
ePub files do not center a custom <hr /> tag!

Well, this is annoying. I've set up a custom <hr /> tag that is supposed to look like those fancy triple asterisms you see in real printed books. I've used the following css:

Code:
hr { display: block; height: 1.15em; background: #FFFFFF url(../img/hr.svg) no-repeat scroll center; border: none; margin: 1em auto; }
Everything works fine except for the centering! I've also tried 'text-align:center;', and you'll see that the background tag tells it to center as well as the margin tag! (I added 'display:block;' just to see if that did anything—no luck.) Does the ePub specification not include this? Is the software just broken? Or am I doing it wrong?
Haidon is offline   Reply With Quote