counter-reset

Previous- empty-cells  |  Next-counter-increment

Description

The 'counter-reset' property also contains a list of one or more names of counters, each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element. The default is 0.


Initial Value : none

Applies to : all elements

Inherited : no

Possible Values
[ <identifier> <integer>? ]+ | none | inherit

Example(s)
h1:before {    content: "chapter " counter(chapter) ". ";    counter-increment: chapter;  /* add 1 to chapter */counter-reset: section;      /* set section to 0 */}
h1 { counter-reset: section -1 imagenum 99 }

Previous- empty-cells  |  Next-counter-increment