View Single Post
Old 04-19-2023, 12:46 AM   #6
tschucha
Zealot
tschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfolded
 
tschucha's Avatar
 
Posts: 147
Karma: 52546
Join Date: Oct 2010
Device: Kobo Sage
> You can also do things like adding negative margins to the body tag to reduce those wide margins that Amazon seems to have an unnatural love for.

Do you know the steps to take to automate this using Calibre? Right now I have added this code to the "Look and Feel" -> Styling tab for use on my Kobo trying to minimize the line height

body {
line-height: 0.9; /* or normal */ /* changed from 1.2 */
text-renderingptimizeLegibility
}

While searching for ways to do negative margins I found an old post saying:


Quote:
Originally Posted by snoeki View Post
I am looking for an option to convert my epub collection to azw3 and I would like to get negative margins for my kindle paperwhite 1.

I do this now manually and I change the css to this :

p {
margin-left: -40px;
margin-right: -40px;
margin-top: 0;
margin-bottom: 0;
text-indent: 1.2em
}

The margin-left and margin-right to -40px. I am looking for a way to do this when I convert the books to azw3 without having to change the css files manually.

The problems I get is that not all the css files are the same. Sometimes people use the p option and somtimes the div options or they put the margins in the body.

Is there a way to get this right while converting without doing anything manually?

If I add the margin-xxxx values to my existing css code would this do the trick?
tschucha is offline   Reply With Quote