Example

A simple counter-increment property example:

Laboratory

description & Usage

To decrease the counter number in CSS, we use the counter-increment property.

Informations

# Description
Default Value none
Inherited no
Animatable no
Version CSS2
JavaScript syntax object.style.counterIncrement = "subsection";

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
counter-increment

Syntax

Values

Values Description
none By default, none of the counters will increase.
id number The entered ID indicates which counter should not be incremented.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.