Quote:
Originally Posted by JSWolf
Have a look at the following code for a chapter title.
HTML code
Code:
<h2 class="chapter">Chapter One</h2>
CSS code
Code:
h2 {
font-size; large;
margin-top: 1em;
margin-bottom: 1em;
text-align: center;
text-indent: 0;
font-weight: bold;
}
That defines a chapter header of Chapter One that's bold, center, font size is large, and has a 1em space between the top and bottom of the chapter title.
See how simple it is?
|
Exactly! CSS/HTML are very simple to learn and there are very good tutorials for the new coder to get things going.
I would only make one small correction to JSWolf's example - with that CSS you do not have to define a 'class="chapter" ' - the plain <h2> tag will work.
Code:
<h2>Chapter One</h2>
h2 {yadda, yadda}