View Single Post
Old 10-06-2020, 05:16 PM   #925
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: 80,222
Karma: 148951761
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 Jack426 View Post
Here's a fix that should work when converting to KFX with negative margins causes some center-aligned text/images to left-align instead. Use the CSS below, preferably added directly to the top of the main stylesheet in the "Edit Book" interface.

Code:
html{
margin-left: -30px;
margin-right: -30px;
break-inside: avoid !important;
}
I've only tested this with a couple of books, but the CSS above fixed the issue in each one. Adjust the margin values to your preference.
I agree that adding the break-inside works for fix the centering.

Last edited by JSWolf; 10-06-2020 at 05:32 PM.
JSWolf is offline   Reply With Quote