View Single Post
Old 05-26-2012, 02:45 PM   #44
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,049
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
I do it all in 1 pass: <p class="para">Chapter One</p> and create a unique class just in case I want to style it (now or later). (The bloat, is tiny for chapter heads.

Code:
<p class="para">Chapter (.+)</p>
Code:
<h2 class="chapno">Chapter \1</h2>
Code:
.chapno {display: block}
That's a bit of code bloat I would say. Why not just use...

Code:
<h2>Chapter 1</h2>
and then set h2 as you want for the chapter titles in the CSS?

Code:
h2 {
margin-top: .75em;
margin-bottom: 1em;
text-align: center
}
JSWolf is offline   Reply With Quote