View Single Post
Old 07-15-2022, 01:40 PM   #4
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: 79,863
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The chapter header is some pretty poor code. This is some much better code for the same thing. You can style h2 as you see fit. But as you see, the code for the chapter header is very clean and simple. Plus, if you want or need to generate a new ToC, this will let you do so very easily. Plus, I cannot stand links in the chapter header as I prefer to nuke the HTML ToC.

Code:
<h2>Chapter 4</h2>
Code:
h2 {
  text-align: center;
  text-indent: 0;
  font-weight: bold;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
JSWolf is offline   Reply With Quote