counter-reset

The counter-reset property accepts one or more counters, each one optionally followed by an integer which indicates the value reset for every occurrence of an element. The default reset is 0.

CSS2

Syntax

counter-reset: [ <custom-ident> <integer>? ]+ | none | inherit
Initial: none
Applies To: all elements
Inherited: no
Percentages: NA
Media: all

Values

counter-reset: value
Value Initial Description
custom-ident One or more characters a-zA-Z, digits 0-9, hyphen -, or underscore _ and cannot start with a digit or a hyphen followed by a digit
integer One or more digits 0-9
none none Counters are not incremented

DOM

object.style.counterReset = "value";

Example | custom-ident

Example | integer

Example | none

Example | DOM

External

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification

W3C CSS Lists and Counters Module Level 3