View Single Post
Old 05-18-2020, 10:42 AM   #4
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by DNSB View Post
Personal choice. The renderer really doesn't care what names you use for your classes.

I tend to give meaningful—to me—names to my commonly used classes and functional names to the rest. So chapternumber (fairly obvious) and glyphw33 (I have a whole series of glyphwxxy where the xxy is the percent width).
I've been pretty much using class names (.noindent) describing how they look, and not so much what they're used for (.chapternumber)

I reserve h1..h6 for TOC entries and calibre's "Use Major Headings" option

So for a chapter number I might have <p class = "bold superbig center" ...

so I can see that <p class="chapternumber" ... might be easier and more meaningful
phossler is offline   Reply With Quote