Search within TutorialsPark

CSS counter-reset Property


To reset counter to any value, positive or negative


Definition and Notes.

1. The CSS counter-reset property is used to reset the specified counters or create one if it doesn't already exist.

2. By default counters are initialized at 0. To specify a different value at start, add integer after the counter name.


Syntax:

CSS counter-reset property. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:

Note: If no value is specified, the default value is 1.

Property Values

Value Description
none To denote that no counter reset is to be performed
id To specify the name of counter as an ID
inherit The child element inherits the values of parent element

Specifications

Specs Value
Name counter-reset
Value [<identifier> <integer> ?]+ | none
Initial Value none
Applies to All elements
Javascript syntax object.style.counterReset="subsection"
Inherited No
Computed Value Same as declared Value
Browser Support internetexplorer safari firefox opera chrome

Related Examples.