06-16-2013, 11:54 AM | #1 |
Member
Posts: 14
Karma: 10
Join Date: May 2011
Device: Nook 2
|
margin format problem
I have an epub problem with a zero right margin and a w-i-d-e left margin, jpeg screenshot attached. All I've tried is removing all margin directives to no effect. What next? Thanks for any help!
|
06-16-2013, 12:09 PM | #2 |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There are 'Margins' (the CSS type)
and there are many other things/ways that just look like margins (and there are images of pages that will not flow either). in the book viewer, right-click: Inspect (you will need to know some HTML and CSS), you might be able to glean why/where there is a big margin from poking around. |
Advert | |
|
06-16-2013, 12:31 PM | #3 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
If this has been run through calibre, it is possible to have two or three overlapping (cascading) styles working at the same time. Don't be discouraged if your first attempt to correct it doesn't work. Do work only on a copy so you can keep the original intact in case your repair attempt causes incidental damage.
|
06-16-2013, 12:52 PM | #4 | |
Member
Posts: 14
Karma: 10
Join Date: May 2011
Device: Nook 2
|
Quote:
Code:
<style type="text/css"> @page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } </style> Code:
<p class="calibre3" style="margin:0pt; border:0pt; height:1em"></p> Code:
<style type="text/css"> @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } </style> |
|
06-16-2013, 12:56 PM | #5 |
Wizard
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Margins can also be set in the .xpgt file (not part of the epub standard, but used by a lot of publishers, it is an Adobe extension to epub). Sigil will put any xpgt file in the Misc folder in the tree view.
|
Advert | |
|
06-16-2013, 01:07 PM | #6 |
Member
Posts: 14
Karma: 10
Join Date: May 2011
Device: Nook 2
|
Got it fixed. In the main css file left-margin was 2em; setting it to 0; fixed my book.
Thanks for the tips folks! The MobileRead community rocks |
06-17-2013, 05:58 AM | #7 | |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Quote:
Not that I've ever achieved export of a page with a picture layout from InDesign that was good for anything other than deletion and a re-make. |
|
06-17-2013, 01:31 PM | #8 | |
Member
Posts: 14
Karma: 10
Join Date: May 2011
Device: Nook 2
|
Quote:
|
|
06-19-2013, 06:37 AM | #9 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
sometimes it's quicker to drop it into calibre & do an epub to epub conversion - that often fixes annoying things that you can't spot manually.
if calibre does fix it & you are curious, you can do some before & after comparisons to see HOW it did it. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML into MOBI: margin problem | silver18 | Conversion | 0 | 02-18-2012 10:02 AM |
ibooks margin problem | redryder | Conversion | 2 | 04-16-2011 06:49 AM |
Overdrive Margin Problem | TrendyGuy | Kobo Reader | 27 | 03-03-2011 09:07 PM |
problem with margin | lurker316 | Calibre | 3 | 12-21-2010 09:02 PM |
Help w/margin problem following conversion | Skydog | Calibre | 7 | 03-29-2010 01:43 PM |