Quote:
Originally Posted by theducks
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...
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
}