counter-reset
Name: counter-reset
Description: Used to reset the automatic counter in the counter-increment
property
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;
}