Table of Contents
The table-of-contents class is used for styling an entire table of contents. It provides default settings for single items as well as settings that apply to the table of contents as a whole.
Selectors
-
Definitions:
table-of-contents
Style Settings
See also: Table of Contents Item, Paragraph, Inline
| Setting | Type | Examples | Description |
|---|---|---|---|
nesting-indentation |
Length | 2em, 14pt |
The indentation of nested headings in the table of contents. |
Pseudoclasses
See also: Table of Contents Item, Paragraph, Inline
Example
// Adds dot leaders, indentation, and margins around the table of contents
table-of-contents {
trailing-column-fill: dots
nesting-indentation: 3em
margin-top: 10pt
margin-bottom: 10pt
}