View Single Post
Old 08-08-2010, 06:41 AM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
How do I centre a horizontal rule?

I want to use horizontal rules as separators between subsections of chapters. It is easy to set them to 50% in the CSS, using

hr.half { height: 2px; color: black;
background-color: black; width: 50%;
}

and they work well and are centred when reading the book in HTML.

But when I read the book on my Cybook reader the horizontal rule is not centred; it is aligned left.

Is there a way to centre them in ePub? What do I need to add to the above segment of the stylesheet? Or, like small-caps, is this one of the things ADE cannot handle?

Regards, Alex
AlexBell is offline   Reply With Quote