Menu Home

counter-increment

osbo.com | CSS | Properties | counter-increment

The counter-increment CSS property increments or decrements the value of the counter.

Syntax

CSS

counter-increment: value;

JS

object.style.counterIncrement = "value";

Values

<'counter-increment'> = [ <counter-name> <integer>? ]+ | none
<counter-name> = <custom-ident>
<custom-ident>

Specifies any valid identifier that is not misinterpreted as a keyword.

<integer>

Specifies one or more decimal digits (0-9).

none

Does not alter the value of any counters.

Initial

none

Examples

counter-name

integer

none

JS

Internal

counter-reset

counter-set

External

World Wide Web Consortium (W3C)