Easy Tutorial
❮ Met Canvas Strokerect Met Win Setinterval ❯

counterIncrement Property

Style Object

Example

Change the counterIncrement property:


Definition and Usage

The counterIncrement property increases the value of one or more counters.

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


Browser Support

All major browsers support the counterIncrement property.

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


Syntax

Return the counterIncrement property:

Set the counterIncrement property:

Property Values

Value Description
none Default value. No counters will be incremented.
id number id defines which counter should be incremented. number sets how much the counter should be incremented by each occurrence of the selector. The default increment value is 1. Allowable values include 0 or negative numbers. If the counter referenced by id is not initialized by counter-reset, it defaults to 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: String, representing the counter-increment property of the element.
--- ---
CSS Version CSS2
--- ---

Style Object

❮ Met Canvas Strokerect Met Win Setinterval ❯