counter-increment

Previous- counter-reset  |  Next-border-top-color

Description

The 'counter-increment' property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer indicates by how much the counter is incremented for every occurrence of the element.

The default increment is 1. Zero and negative integers are allowed.


Initial Value : none

Applies to : all elements

Inherited : no

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

Example(s)
h1:before {    content: "chapter " counter(chapter) ". ";    counter-increment: chapter;  /* add 1 to chapter */counter-reset: section;      /* set section to 0 */}

Previous- counter-reset  |  Next-border-top-color