User:SF2001/Guiguts PP Process/HTML/TOC
< User:SF2001 | Guiguts PP Process | HTML
Jump to navigation
Jump to search
Start with
<div class="chapter"> <h2 class="nobreak" id="CONTENTS">CONTENTS</h2> </div>
to signify a new chapter.
Table starts with
<table> <tablebody>
then, for each row <tr>
then, for each column <td> two or three per row.
- Optional number, sometimes arabic and sometimes roman numeral
- text
- page number usually right aligned.
then close all the tags.
Simple Two Column
Example inspired and simplified from here: http://www.gutenberg.org/files/63781/63781-h/63781-h.htm
<div class="chapter"> <h2 class="nobreak">CONTENTS</h2> </div> <table border=0" cellpadding="4" cellspacing="0" summary> <tr> <td> </td> <td class="tdr"><small>PAGE</small></td> </tr> <tr> <td class="tdl"><a href="#Page_1"><span class="smcap">Joan of Arc</span></td> <td class="tdr"><a href="#Page_1" title="Page 1">1</a></td> </tr> </tbody> </table>
In the header section of the HTML just under the standard table
.toc { margin: auto; width: auto; max-width: 90%}