CSS counter increment Property
CSS counter-increment Property
The counter-increment property is used to either increase or decrease the value of one or more CSS counters. It is usually used together with the counter-reset property and the content property.
Default Value:-
Its default value is none.
Syntax;-
Its syntax is:- counter-increment: none | id | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
none | No counters will be incremented |
id number | The id defines which counter to increment. The number sets how much the counter will increment on each occurrence of the selector. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |