counter-increment | WebReference

counter-increment

Name: counter-increment

Description: This is an automatic counter which can be increased or decreased by a designated value. It can also be used to number lists.

Browser Compatibility: O 4+

Inherited: No

Values:

Code Example:

h1:before {
   content: "Chapter " counter(chapter) ":"
   counter-increment: chapter;
   counter-reset: section;
}