View Single Post
Old 07-14-2022, 09:12 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,204
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Yes:

Click image for larger version

Name:	Screenshot from 2022-07-14 21-10-38.png
Views:	88
Size:	999.1 KB
ID:	195000

bernie

Quote:
Originally Posted by AccidentallyLazy View Post
I convert all my books to KFX to take advantage of the features it provides, however I also like to slightly edit the resulting file.

html {
margin-left: -35px;
margin-right: -35px;
break-inside: avoid !important
}

I use the above to push the text closer to the edges of my device, removing empty space, and...

body, div, h1, h2, h3, h4, h5, h6, p {orphans: 1 !important; widows: 1 !important;

...the above to remove the resulting extra blank spaces added when converting to KFX, so the text goes from the top right to the bottom of each page.

The problem I have is that I add the html manually to the book, then add the CSS when converting which means it takes forever to convert a bunch of books as I have to edit>add code>save for every single one.

Is there any way to add both these codes when converting, so that I can just select a handful of books and have these added all at once during conversion?

Thanks.
gbm is offline   Reply With Quote