View Single Post
Old 04-06-2014, 02:41 PM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,554
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JLius View Post
In the CSS of my epubs, I didn't set font-size for headings (h1,h2,h3). When h1 was too big for the chapter heading, I just used h2.
Is this good practice? Or should I always set a font-size for the headings in my css?
You should never choose your tags based on how they look, but on what they mean (except for working around bugs and limitations, maybe), and then alter the looks with CSS.

That said, there's a bit of leeway in what <h1> means. Is it for the book title? For parts, even if there are no parts?... Personally, I often use <h1> for chapters, and if there are parts, I use <h1 class="part"> or something like that.

Quote:
Is what is written here (http://www.w3.org/TR/CSS2/sample.html) the default size for headings? So if you dont set them in CSS, this is the size they get?
The default depends on the application (and sometimes even user settings), so no, those are at the most common defaults, but you shouldn't rely on them.
Jellby is offline   Reply With Quote