Example
A simple counter-increment property example:
Laboratory
description & Usage
To decrease the counter number in CSS, we use the counter-increment property.
Browser compatibility and Support
| # |
Chrome |
Edge |
Firefox |
Safari |
Opera |
| counter-increment |
|
|
|
|
|
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.
|