View Single Post
Old 01-02-2020, 05:05 PM   #12
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,033
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I remove all CSS lines that use inherit as I find they actually have no use. Lines with auto also go and in most cases so do line-height. justify: left also goes. I also remove silly font sizes that are 1em or smaller. Any px or pt I convert to em. And thee % for spacing I change to a more reasonable em. The only % I leave is for hr and images.

There can be a lot of garbage in CSS of commercial eBooks. There can even be more then 100 unused CSS classes. That's why I always use the option to get rid of extra CSS. It ets rid of extra CSS in styles and HTML.

I also combine multiple CSS into one because I find multiple CSS to be a bad idea.

When I am done, I have fairly clean CSS and fairly clean HTML. So it makes finding any issues that much easier. Plus, I have the eBook formatted rather well and it's easy to then use the margins, line height and font and font size settings as desired.
JSWolf is online now   Reply With Quote