Quote:
Originally Posted by Splicer
Now my question is about the margin-issue with epubs .. I quickly checked both Sigil and Callibre for options to change margins throughout an ebook but couldn't find it.
Not being an epub/html expert, I expect that there's probably some margin-settings in some epub's that make them 'insensitive' for Kobo's margin-changes from the menu .. but could use some advice/help to tackle this issue (as when solved, I would be happy enough with 'epubs' and dont go after 'kepubbifying' anymore.
|
In Sigil, you would modify the margins by changing the margin settings in the stylesheet or embedded in the chapter files. There's no way to change the margins from Sigil.
In the body tag, I use <body class=epub> with the following in the stylesheet.css file:
.epub {
display: block;
font-size: 1em;
margin-bottom: 5pt;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 5pt;
padding-left: 0;
padding-right: 0;
text-align: left;
word-wrap: break-word;
widows: 1;
orphans: 1;
}
The above sets up my basic settings which apply unless modified by other codes. For each paragraph in the file, I use several different styles mostly different in the right and left margins. The standard style is:
<p class="para">
.para {
display: block;
font-size: 1em;
line-height: 1.1;
margin-bottom: .2em;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-indent: 0;
text-align: left;
text-indent: 4%;
}
The major change is setting 3 of the the margins to 0 so I can fit the maximum text on a page while the bottom margin gives me some space between paragraphs. The other change is the text-indent settings, for a non-indented paragraph (first paragraph of a chapter or after a break within a paragraph) get the text-indent set to 0. Since I copy/paste my standard style sheet, I didn't bother with the margin: 0 shortcut to set all margins to 0 on one line. The other settings plays with line spacing within the paragraph and spacing between paragraphs.
One issue I'm seeing with 2.1.1 is the opposite of the 2.0 top of page where text was too close to the top of the screen. With 2.1.1, I find occasional lines of text at the bottom of the page get the last couple of lines of pixels being cut off.
If you remove the margin settings from the styles, the KT will manage the margins but I've never been really happy with the results.
David