View Single Post
Old 11-24-2017, 06:46 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by kovidgoyal View Post
Quote:
Originally Posted by heitormsilva View Post
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.
DoctorOhh is offline   Reply With Quote