Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2013, 11:54 AM   #1
jocala
Member
jocala began at the beginning.
 
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!
Attached Thumbnails
Click image for larger version

Name:	page.jpg
Views:	156
Size:	106.5 KB
ID:	107061  
jocala is offline   Reply With Quote
Old 06-16-2013, 12:09 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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.
theducks is offline   Reply With Quote
Advert
Old 06-16-2013, 12:31 PM   #3
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Old 06-16-2013, 12:52 PM   #4
jocala
Member
jocala began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2011
Device: Nook 2
Quote:
Originally Posted by theducks View Post
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.
I'll keep poking around, but no luck thus far. This is straight text, not a PDF or jpeg image. I looked for and removed

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>
css code from all pages. This had no effect on book format. Still the same as the attached screenshot above.
jocala is offline   Reply With Quote
Old 06-16-2013, 12:56 PM   #5
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
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.
ShellShock is offline   Reply With Quote
Advert
Old 06-16-2013, 01:07 PM   #6
jocala
Member
jocala began at the beginning.
 
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
jocala is offline   Reply With Quote
Old 06-17-2013, 05:58 AM   #7
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by jocala View Post

Code:
<style type="text/css">
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
</style>
Did the book come from InDesign? It tends to add those long decimal portions to picture sizes, which then fail validation.
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.
exaltedwombat is offline   Reply With Quote
Old 06-17-2013, 01:31 PM   #8
jocala
Member
jocala began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2011
Device: Nook 2
Quote:
Originally Posted by exaltedwombat View Post
Did the book come from InDesign? It tends to add those long decimal portions to picture sizes, which then fail validation.
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.
I don't know, no InDesign indicators I saw.
jocala is offline   Reply With Quote
Old 06-19-2013, 06:37 AM   #9
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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.
cybmole is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 05:30 AM.


MobileRead.com is a privately owned, operated and funded community.