Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2013, 12:54 PM   #1
jocala
Junior Member
jocala began at the beginning.
 
Posts: 7
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:	46
Size:	106.5 KB
ID:	107061  
jocala is offline   Reply With Quote
Old 06-16-2013, 01:09 PM   #2
theducks
Grand Sorcerer
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: 15,059
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
Old 06-16-2013, 01: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,086
Karma: 1444487
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, 01:52 PM   #4
jocala
Junior Member
jocala began at the beginning.
 
Posts: 7
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, 01:56 PM   #5
ShellShock
Guru
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: 970
Karma: 2193020
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
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
Old 06-16-2013, 02:07 PM   #6
jocala
Junior Member
jocala began at the beginning.
 
Posts: 7
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, 06:58 AM   #7
exaltedwombat
Evangelist
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: 454
Karma: 1703930
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, 02:31 PM   #8
jocala
Junior Member
jocala began at the beginning.
 
Posts: 7
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, 07: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: 2,962
Karma: 1280000
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML into MOBI: margin problem silver18 Conversion 0 02-18-2012 11:02 AM
ibooks margin problem redryder Conversion 2 04-16-2011 07:49 AM
Overdrive Margin Problem TrendyGuy Kobo Reader 27 03-03-2011 10:07 PM
problem with margin lurker316 Calibre 3 12-21-2010 10:02 PM
Help w/margin problem following conversion Skydog Calibre 7 03-29-2010 02:43 PM


All times are GMT -4. The time now is 08:29 PM.


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