O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

counter-increment

Values:

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

Initial value:

none

Applies to:

All elements

Inherited:

No

Computed value:

Same as declared value

Description:

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

Examples:

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required