Quote:
Originally Posted by hobnail
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>.