Quote:
Originally Posted by photoluminations
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