Example
A simple counter-reset property example:
Laboratory
description & Usage
To reset or create one or more counters in CSS, we use the counter-reset feature.
Browser compatibility and Support
# |
Chrome |
Edge |
Firefox |
Safari |
Opera |
counter-reset |
|
|
|
|
|
Values
Values |
Description |
none
|
is the default value.
None of the counters will be reset.
|
id number
|
The inserted ID specifies which counter on the page should be reset.
You must specify a number to value it.
The default value is 0.
|
initial
|
Adds this value to its default property.
|
inherit
|
It inherits this value from its parent tag.
|