The counter-reset
property in
This property is used with the
content
and thecounter-increment
property.
counter-reset: none|name number|initial|inherit;
none
: It is the default value. We can not reset the value of the counter using this.
id
: It specifies the counter that has to be reset. The default reset value is 0.
initial
: This sets the value to its default value.
inherit
: This inherits the property from its parent value.
The following is the basic counter-reset
property.
In this example, we make the counter on Employee
. We reset the counter using the counter-reset
property. This deletes any previous value in the count, and the count is set to 0.