View Single Post
Old 10-02-2012, 04:11 AM   #14
voidoid
Connoisseur
voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.voidoid solves Fermat’s last theorem while doing the crossword.
 
voidoid's Avatar
 
Posts: 57
Karma: 28542
Join Date: Sep 2012
Location: Australia
Device: kobo touch
Quote:
Originally Posted by Glasofruix View Post
As i understood it there is a css file inside an epub file that dictates some things such as the margins, disabling the margins during conversion solved the problem for me, now i can control the text on my kobo as i see fit.
The problem with just disabling the margins in the calibre conversion is that if the epub is viewed on other devices without margin controls then the margins will be zero and too close to the edges. To solve this problem just do the calibre conversion as suggested and disable the margins then open the epub in Sigil and go to the file page_styles.css and change this:

@page {
margin-bottom: 5pt;
margin-top: 5pt
}

to this:

@page {
margin-bottom: 5pt;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 5pt
}

Now the you can control the margins with your kobo BUT have a minimum margin of 5 pt and not 0 pt. Also will work fine now on other readers.
voidoid is offline   Reply With Quote