Quote:
Originally Posted by kovidgoyal
Quote:
Originally Posted by heitormsilva
Converting from EPUB to AZW3 Calibre is generating the following CSS to the <body>
Code:
.calibre {
margin-bottom: 0;
margin-top: 0;
padding-left: 0;
padding-right: 0
}
The resources/template/html.css is blank and the value of "Convert settings -> Page setup -> margins" are set to less than 0.
What else could I do to prevent this to happen?
|
Nothing, body margins are always set to zero so they dont interfere with page margins. You dont want body margins in an ebook, they make no sense.
|
I'm confused, my body margin (always <body class="calibre">) is set by default in calibre is 5pts.
Code:
.calibre {
display: block;
font-size: 1.25em;
line-height: 1.2;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
padding-left: 0;
padding-right: 0;
text-align: left;
}
My page margin set by default by calibre as
Code:
@page {
margin-bottom: 5pt;
margin-top: 5pt;
}
When I change the the values in page setup and mark Left and Top unchanged the Page top remains unchanged, the Body left disappears. Yet when I change the Right and Bottom to 15pts the body right and the page bottom both change to 15pts.
Something seems inconsistent.