Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2011, 04:48 PM   #1
photoluminations
Member
photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.photoluminations could sell banana peel slippers to a Deveel.
 
Posts: 23
Karma: 3022
Join Date: Jul 2011
Device: none
Centering text epub for NOOK Color

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?
photoluminations is offline   Reply With Quote
Old 07-28-2011, 04:56 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
It sounds like an issue with ADE. You said it displays correctly with everything but ADE. The Nook uses the mobile version of ADE.
user_none is offline   Reply With Quote
Advert
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: 29,803
Karma: 54830978
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
Old 12-15-2011, 12:01 PM   #4
uavalos
Junior Member
uavalos began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2011
Device: none
So what's the workaround? Again, ADE doesn't respect the usual conventions for centering objects. And by "usual", I mean what you normally do on the Web. For example, to center a DIV apply this class to it:

.center {
margin-left:auto;
margin-right:auto;
}

Assuming the DIV has a fixed width, that's usually enough. But in ADE (and hence the Nook), it fails completely. So how do you center stuff? I'm starting a new forum post:

https://www.mobileread.com/forums/sho...28#post1879628
uavalos is offline   Reply With Quote
Reply

Tags
calibre conversion, epub, nook color


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nook not centering anything. why? kateharp ePub 0 05-11-2011 10:53 PM
Problems w/epub from Calibre for Nook Color agarner ePub 2 03-21-2011 07:51 AM
Sample of Interactive ePUB for Nook Color arvinder Nook Developer's Corner 0 02-07-2011 08:03 AM
Nook Color - PDF --> EPUB mikevarela Calibre 1 12-19-2010 01:15 PM
Any epub reader for PC allows me to change text and background color? ttluisa General Discussions 5 05-11-2010 11:04 PM


All times are GMT -4. The time now is 11:04 PM.


MobileRead.com is a privately owned, operated and funded community.