12-13-2014, 09:58 PM | #1 |
Zealot
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. |
12-14-2014, 01:35 PM | #2 |
Well trained by Cats
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 |
12-14-2014, 05:11 PM | #3 |
Zealot
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. |
01-02-2015, 09:41 PM | #4 |
Junior Member
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. |
|
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 |