Quote:
Originally Posted by deback
Well, I like to keep it simple, so I use a different class for each type of paragraph or item for each of the pages. I use names that are easy to remember and use a template file that I can quickly copy and paste into a CSS file (all pasted over the .calibre class) for classes, such as: desc, desc1, epi, epi1, acks, acks1, contents, contents1, chapter, chapter1, ni, text, title, author, publ, etc. This makes it very easy and quick when editing an ePub file. I use find and replace a lot when cleaning up the messy codes that I find so often in poorly formatted files.
|
Like @hobnail, I'd rather use as less classes as possible. A code with little classes is so much more readable and elegant. I hate to see standard paragraphs with classes. It really should be just <p>.
Look at the screenshot. I have drop caps, indentation, ruler, headers, and just a single class for an specific case.