View Single Post
Old 04-20-2020, 02:18 PM   #5
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,878
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 hobnail View Post
When I edit books that I buy or download from Project Gutenberg they always have classes on almost every html tag. For example, every p tag has the class pindent or some such.

Then the CSS will have something like ".pindent { text-indent ...}". When I'm fixing a book, in the CSS I'll just have a plain p with the necessary formatting; "p { text-indent: ...}"

Is there some reason, for compatibility, safety, etc. for them doing that?
It's because the publishers have no idea what the phrase "keep it simple" means. They do very stupid stuff a lot of the time including things like <p class="tx">, Another stupid thing they do sometimes is leave in hundreds of unused CSS classes in the CSS.

There is no reason they cannout use <p> for the most use paragraph format.

p {
margin-top: 0;
margin-bottom: 0;
text-indent: 1.2;
}

That works very well and it's what I use for <p>.
JSWolf is offline   Reply With Quote