View Single Post
Old 05-02-2019, 08:13 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,887
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by odamizu View Post
I don't know about KFX, but for KF8, I have not found margin rules to work with <html> or <body>. Instead, I use <p> and add a media query so that it doesn't affect epub renderering engines.

Code:
@media amzn-kf8 {
	p {margin-left: -36px; margin-right: -36px; }
	}
Also, more specific margin-left and margin-right rules will override the above. So you need to look for and revise/delete things like:

Code:
p.para {margin-left: 0; margin-right: 0}
p.txt {margin:0}
This can get tedious.

To normalize line-height, I delete most, if not all, line-height rules to allow the Kindle to set the line-height per user settings.
The negative left/right margins of -45px in HTML works. I have seen it on a PW3.
JSWolf is offline   Reply With Quote