![]() |
EPub>Mobi>Kindle 3 large left margins
Most of my EPub>Mobi>Kindle 3 files have large left margin. I have seen this problem listed in these forms, but unless I have missed a post, I do not yet see a solution. I have tried EPub>Lit>Mobi but it converted with same large left margin. I can probably convert it Rich Text and fix in MS Word, but is there an easier way?
My Calibre is 0.7.23 with output set for Kindle (not DX) Thanks! |
Have you set the margins in Calibre? When you are in the "Convert" dialogue window, if you click on "Page Setup", there will be a place to set "Top", "Bottom", "Left" and "Right" margins. That sets margins for the current book. You can also set this universally by clicking on "Preferences" at the top of the app and then choosing "Common Options" and then "Page Setup" again.
|
Yes, I tried setting Left to 1, also, both left and right to 1 but it converted the exact same way with large left margin. I saw a post by the program author where he said as long as output is set to Kindle (it is) and I use current version (I am), margin should be the same as the epub, but...its not. Google (and these forums) show its a common problem, but there does not yet seem to be a solution other then dump epup to txt and manual redo.
Quote:
|
Quote:
|
Hate to bump an two week old post, but is there a tutorial or something that explains how to do this? I've recently run into this problem (with some epubs uploaded here) and have no idea just what to change in the style sheet...
I saw li {margin-bottom: 0.25em; margin-left: 2em;} Changed that from 2 to .25, didn't affect the end product at all. (I assumed that meant "line", but I guess I must have been wrong) |
Quote:
|
Yeah, but it's really a Calibre specific epub issue, though. The margins seem to look fine when the epub is viewed as an epub.
It's just when it's turned into a mobi that something goes haywire, so knowing just what to tweak in the epub to avoid this problem in Calibre seems more like a Calibre issue than epub. At any rate, I simply deleted the style sheet and it seems to have taken care of it. |
Quote:
|
Quote:
you might look at a working EPUB with Sigil in Code view and locate the indicated selectors in the style sheets to get some idea how the nested box model affects what you see. |
Quote:
|
Have you made sure that your output profile is also set to Kindle? Calibre calculates the margin handling for Mobi output a bit differently when it knows the final destination is a Kindle.
|
I have had no margin problems with the kindle and have converted 8000+ books for my mother's kindle 3. Of course I have not viewd all of them but a random sampling of 200+ reveals no problems.
The books I converted were 90 % in epub format for my Sony. epub is my default output. Probably doesn't make any difference but so far has worked flawlessly. I no longer have the kindle as I sent it to my mother, but kindle for pc shows the books as fine. Perhaps it is a kindle setting on the kindle itself? |
Quote:
I would guess that you know MORE HTML than I :thumbsup: |
A quick explanation: Left margins in the MOBI format for the kindle can only be set in 2em blocks. That is a hard limitation of the Amazon MOBI renderer. So if you have a smaller left margin in your EPUB file, say 0.5em when translated to MOBI it becomes 2em.
|
Quote:
I understand what you're saying here, but is there no way to override the epub settings? The dialog in Calibre would seem to suggest that you can set the margins when exporting. Now I can understand that anything less than 2em becomes 2em, but is there no way for 0 to become 0? Adding css to the Extra CSS of Look&Feel also doesn't seem to accomplish anything as this is just ignored in my attempts (for instance by adding p { margin-left: 0; } which doesn't even show up anywhere in the document or css after a conversion to epub, nor does it work in a conversion to mobi). While both the Sigil and Tweak Epub solutions are great when you only have to do a few files, it becomes very tedious with large numbers. Thanks guys! [edit] saw in this thread that there is an upcoming feature to just dump the margin completely. That would be great so I'll just wait for that and only worry about the things I want to read now. [/edit] |
| All times are GMT -4. The time now is 10:01 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.