09-05-2010, 10:20 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2010
Device: Kindle (3rd gen)
|
ePub to mobi margin question
Howdy all!
I have been getting an issue that seems to be pretty common, namely when I convert my epub volumes to mobi I get an excessively large left-margin. With the help of Sigil and by searching several threads on this forum, I think I have tracked down the issue to changes Calibre makes to the CSS upon conversion; the margin-left spacing is defined across both the parent and child elements that comprise the same paragraph, thus causing the extra padding. I know Calibre allows for defining custom CSS to be added as part of the conversion process, and I have manually tested and confirmed that by adding the property 'blockquote {margin-left: 0 !important;}' the extra margin spaces are cancelled out, and the issue is fixed. Voila! Problem is, it only works when I manually put in the code using Sigil. When I use Calibre to insert the code, it simply ignores the additional CSS I have defined and never adds it. Am I making a noob mistake somewhere? I ask because I have quite a number of ePub files I would like to plop on my Kindle, and the idea of cracking open every single one in Sigil seems very... unfortunate Particularly when it seems like Calibre can easily fix this as part of its conversion process. Thanks for any help or advice anyone can provide! |
09-05-2010, 11:55 PM | #2 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2010
Device: Kindle (3rd gen)
|
Fixed!
I just had to change the selector to .calibre4 - so that the CSS entered in Calibre is thus: Code:
.calibre4 {margin-left: 0 !important;} |
Advert | |
|
09-06-2010, 12:50 AM | #3 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you open a ticket and attach a sample showing this behavior on conversion, I'll be happy to look at it.
|
09-07-2010, 07:53 PM | #4 |
Junior Member
Posts: 6
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Convert epub to mobi with wide left margin on Kindle | victoria0217 | Conversion | 91 | 11-15-2011 05:25 PM |
Margin Control with ePub/Mobi Conversion | ascherjim | Calibre | 7 | 10-15-2010 03:09 AM |
New conversion questions: Getting rid of huge left margin Epub to Mobi | geekgeek | Calibre | 2 | 08-31-2010 11:00 PM |
HTML to .MOBI: large l.h. margin; text cuts off on the rt. Ideas how to fix? | thorn | Calibre | 1 | 02-21-2010 01:47 AM |
Mobi vs. ePub... kind of a noob question sorry.. | jessTay | ePub | 8 | 05-21-2009 11:16 AM |