![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
fixing a margin
I got an drmn-free indy published book in mobi format. It has a really wide left-hand margin.
In Convert Books>page setup, I have margins set for 5 pts, but this is much more than that. Running a convert books doesn't do the job. I converted to epub and exploded the book, but the css doesn't list a huge left margin. I've never gone in and edited a book before. Can someone walk me through the steps needed to get rid of that huge left margin? thanks!! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
ETA I used Mobi unpack, and looked at the resulting HTML, couldn't find any place where the maragin or indent was set. i'm not sure what else to look for.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,226
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Please post the CSS of the Mobi > ePub conversion. Maybe someone can see something you've missed.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
page_style.css
@page { margin-bottom: 5pt; margin-top: 5pt } Attached is the longer .css, and also the exploded mobi file. thanks! |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
it won't let me attach a .css file or the exploded mobi file as html. should I attach the original mobi file so someone can look at that?
Spoiler:
Last edited by BeccaPrice; 06-29-2012 at 11:01 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,722
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Look at your calibre6 style - it has a 2em left indent. I bet you a dollar your document has <blockquote class="calibre6"> in all your html pages.
You might want to edit your post to put the above inside a SPOILER tag btw to keep the thread readable. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
I'd love to put it in a spoiler - how do I do that?
so if I fix the calibre6 style, how do I reassemble the files to get it back into one epub file? (that 2em indent was also in calibre18 style - I fixed it in both places, rezipped the files, renamed to epub, and imported ... and it worked! you have no idea how smug I'm feeling right now.) (I still need to know how to put stuff in a spoiler tag, though.) ((ha! I figured that one out on my own too! I've gotta be more adventurous in exploring things rather than just asking.)) Last edited by BeccaPrice; 06-29-2012 at 11:02 AM. Reason: more information |
![]() |
![]() |
![]() |
#8 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,722
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
![]() |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
no, really, kiwidude, you have no idea how pleased I am with myself. I've never delved this deeply into editing ebooks before, and have only a passing acquaintance with css. This is all still at the edge of being black magic for me... if I do this ritual, I get that result... but I'm slowly beginning to actually understand what I'm doing, which is much more fun.
|
![]() |
![]() |
![]() |
#10 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,722
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Well you should be pleased, you are undoubtedly way ahead of what most calibre users would ever do by diving under the covers to modify a book's css styles. Which means you are way more likely to be able to read the books on your reader formatted how *you* want them to look.
![]() There is indeed a lot of voodoo involved with css/html rendering, particularly once you start banging your head against issues to do with styles inheriting and conflicting with each other, but you've made the most important first steps. Have fun... |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
oh, I will, I will...
Thanks so much for hand-holding. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fixing Up Typography | ahi | Workshop | 65 | 11-18-2013 04:35 AM |
PRS-T1 Fixing Permissions? | Holtor | Sony Reader Dev Corner | 3 | 05-03-2012 02:39 AM |
Need help fixing an e-pub! | NightStar76 | Sigil | 10 | 10-11-2011 12:32 PM |
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } | cybmole | Conversion | 15 | 02-12-2011 11:57 AM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 06:58 AM |