offline version v3


286 of 298 menu

counter-reset property

The counter-reset property resets a counter value to zero. This property must be used when working with counter-increment, and it is set for parent.

Syntax

selector { counter-reset: name [initial value] | none; }

Values

Value Description
name An ordinary word (like a class name or id). You can specify multiple names, separating them with a space. In this case, several counters will change at the same time.
initial value A positive or negative integer. Optional.
none Prevents incrementing the counter for the current selector. It is a default value.
enru