counter-reset

The counter-reset CSS property resets a CSS counter to a given value.

Initial value none
Applies to all elements

Syntax

  
counter-reset: my-count;
  

Values

The name of the counter to reset.
The value to reset the counter to on each occurrence of the element. Defaults to 0 if not specified.
No counter reset is to be performed. This can be used to override a counter-reset defined in a less specific rule.

Browser support

counter-resetchrome2edge12firefox1ie8opera9.2safari3

We use cookies to improve your experience. Learn more in our Privacy policy.

×