Easy Tutorial
❮ Jsref From Prop Search Value ❯

counterReset Property

Style Object

Example

Change the counter-reset property:


Definition and Usage

The counterReset property creates or resets one or more counters.

The counterReset property is typically used in conjunction with the counterIncrement property and the content property.


Browser Support

All major browsers support the counterReset property.

Note: The counterReset property is only supported in IE8 when a !DOCTYPE is specified.


Syntax

Return the counterReset property:

Set the counterReset property:

Property Values

Value Description
none Default value. No counters will be reset.
name Defines which counter should be reset.
number Defines which counter should be reset. The number sets the value to which the counter should be reset each time the selector appears. The default reset value is 0.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: none
Return value: A string representing the counter-increment property of the element.
--- ---
CSS Version CSS2
--- ---

Style Object

❮ Jsref From Prop Search Value ❯