Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-13-2014, 09:58 PM   #1
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Need a little help with margins/padding

I am attaching an epub created in Sigil.
I am making an error someplace with my padding or margins.
The epub validates as does the CSS, so I believe the error is in my understanding the code correctly rather than typographical.

The epub looks correct on Kobo and iBook and in Book View in Sigil, but not on my Nook.

Essentially I have spaces between all paragraphs of all classes.
I think I have coded so that should not be the case, but apparently not the right way.
I have other files on my Nook also created in Sigil that don't have these extras spaces. I am looking for a bit of guidance pinpointing what needs to be changed to make Nook reflect that I don't want extra padding or margins between paragraphs.
Attached Files
File Type: epub A Manual of Prayers copy.epub (1.88 MB, 103 views)
rosshalde is offline   Reply With Quote
Old 12-14-2014, 01:35 PM   #2
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,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Ross
I see nothing 'in general' wrong. Devices have quirks (probably 1 of the reasons there is a dedicated forums for most brands )

Do note: The order of the CSS selectors is important. Last definition prevails.

Line 1 is P
Line 8 is P again <-- in this case, no change
theducks is offline   Reply With Quote
Old 12-14-2014, 05:11 PM   #3
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
theducks,
I found that others had used Calibre to do an epub to epub conversion with CSS expand checked and also remove spacing between paragraphs checked.
This worked, but I have not idea why. It tells me that something was wrong with my code, but I don't see it.
rosshalde is offline   Reply With Quote
Old 01-02-2015, 09:41 PM   #4
AngelaQs
Junior Member
AngelaQs began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2015
Device: Kindle
older nooks don't like compacted margin calls, so for instance, you can't do this for your P tags:

margin: 0 2em 0 2 em;

or any kind of variation thereof. Instead you need to do this:

margin-top: 0;
margin-right: 2em;
margin-bottom: 0;
margin-left: 2em;

at least that's what I discovered after pulling my hair out earlier this week. When I exploded my code, it worked.
AngelaQs is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
removing padding around pictures rosshalde ePub 3 11-21-2014 01:36 PM
pdf padding maf_9000 Amazon Kindle 0 12-29-2012 06:33 AM
epub to mobi - padding right not working 1611mac Conversion 3 11-12-2011 04:10 PM
Zero Padding? penguinaka Library Management 2 07-20-2011 03:32 PM
Remove padding in tables skypilotpete Conversion 2 03-24-2011 01:35 AM


All times are GMT -4. The time now is 03:34 PM.


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