Quote:
Originally Posted by JSWolf
Let me make this simple and show you how it's done and how to do it your way easily.
I'll start with chapter headers using <p class="para">Chapter One</p>. We change that to <h2 class="para">Chapter One</h2>. With me so far? Good. Now you've fixed all the chapter titles to be <h2 class="para">chaptertitle</h2> and that's good except you don't want the class there. Now the easy part begins. All you do is search <h2 class="para"> and replace it with <h2>. See, easy. All it takes is one extra simple step and it works and it gets the job done.
Did you follow that?
|
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}