View Single Post
Old 07-16-2011, 02:52 PM   #76
jswinden
Nameless Being
 
Quote:
Originally Posted by joshmosh View Post
Good suggestion, but it would be nice for it to be synced in such a way as to allow me to do this on the Kobo.

Nigol, how would I go about editing the CSS file? I can't quite figure it out. Thanks!
Explode the ePub using calibre and search for *.css then open it in an editor. Look for the following:

Code:
.calibre {
    display: block;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0;
    margin-left: 6pt;
    margin-right: 6pt;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: justify
}
Delete the following lines:

Code:
    margin-left: 6pt;
    margin-right: 6pt;
    padding-left: 0;
    padding-right: 0;
I personally think it is best to use Sigil to tweak ePubs rather than calibre to convert them, because if you use calibre you will see difficult to follow classes like .calibre, .calibre1, etc. In better formed CSS, you will look to delete margin and padding attributes from within the BODY tag. For example:

Code:
body {
    display: block;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0;
    margin-left: 6pt;
    margin-right: 6pt;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: justify;
}

Last edited by jswinden; 07-16-2011 at 03:01 PM.
  Reply With Quote