Name

counter-increment

Values:

[<identifier> <integer>? ]+ | none | inherit

Initial value:

User agent-dependent.

Applies to:

All elements.

Inherited:

No.

Computed value:

As specified.

Description:

With this property, counters can be incremented (or decremented) by any value, positive or negative. If no <integer> is supplied, it defaults to 1.

Examples:

h1 {counter-increment: section;}
*.backward li {counter-increment: counter −1;}

Supported by:

Opera.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.