Quote:
Originally Posted by hobnail
I used to try and clean up the html but in my opinion it's more work than is necessary, for my needs. I now take a big sledgehammer and delete all of the original css and replace it with my minimal css as explained here. After "fixing" the css this way all that crap just stops creating problems (although it requires self discipline to not look too much at their horrid html). I'll still remove those spans that are around every word or the classless ones around paragraphs, and I bold the chapter titles when they use p tags instead of h tags.
|
You do it the hard way as you then have to figure out what classes in the HTML match the classes in your custom CSS. What I do is remove unused CSS and clean up the CSS that exists. I find that it's a lot easier to use the classes that exist (in most cases)and fix them. I do add some of my own classes. But overall it's easier to just fix what's there as in most cases, the class names are meaningless and without seeing what the publisher did it would not be possible to know what was done.