View Single Post
Old 10-22-2020, 11:46 AM   #11
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
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}
Turtle91 is offline   Reply With Quote