Styling ordered list numbers | 456 Berea Street
june 2011 by mottram
list-style:none: disables the default numbering
counter-reset and counter-increment: create a counting scope and increment the count. Both are described in the CSS 2.1 12.4 Automatic counters and numbering.
content: inserts the index of the created counter. Described in CSS 2.1 12.2 The ‘content’ property
The :before pseudo-element
css
html
lists
counter-reset and counter-increment: create a counting scope and increment the count. Both are described in the CSS 2.1 12.4 Automatic counters and numbering.
content: inserts the index of the created counter. Described in CSS 2.1 12.2 The ‘content’ property
The :before pseudo-element
june 2011 by mottram