Thread: CSS Question
View Single Post
Old 11-12-2020, 02:16 PM   #34
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,248
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by deback View Post
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.
Attached Thumbnails
Click image for larger version

Name:	book.png
Views:	162
Size:	392.0 KB
ID:	183354  

Last edited by thiago.eec; 11-12-2020 at 02:19 PM.
thiago.eec is offline   Reply With Quote