View Single Post
Old 07-28-2011, 07:32 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by photoluminations View Post
Cannot get some text to display centered (horizontal) on the page in Adobe Digital Editions or Nook Color Emulator. Each line is centered in the text box, but the box itself is up against the left margin. Other elements do center correctly on the page.

Paragraph text displays correctly centered horizontally on page in Dreamweaver MX 2004 and in SIGIL; and in PDF output generated by TotalHTML . But displays against left margin on Adobe Digital Editions and NOOK Color emulator (Win XP Pro) in epub generated by calibre (Ver. 0.8.11) But Display type (larger type like a chapter header, defined as a div class (<div class="chapter">), does display centered in Adobe Digital Editions. Captions text (subtype of paragraph) centers in calibre reader, while paragraph text does not.

Styles are defined in a linked CSS stylesheet. All other parameters of a <p> paragraph display, but the text-align center doesn't work in the epub output. Setting the width to 30 ems and the left and right margins to auto doesn't work either. Surrounding the <p> elements with <center>...</center> doesn't work.

Is this a problem with me? calibre? epub?
text-align: center
works in the stylesheet for ADE

Avoid 'auto' for images: width or Height,
they will not center
theducks is offline   Reply With Quote