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

Initial value none
Applies to all elements


counter-reset: my-count;


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


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