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:
- [identifer][integer]
- inherit
- none [Initial value]
Code Example:
h1:before {
content: "Chapter " counter(chapter) ":"
counter-increment: chapter;
counter-reset: section;
}
content: "Chapter " counter(chapter) ":"
counter-increment: chapter;
counter-reset: section;
}