counter-reset | WebReference

counter-reset

Name: counter-reset

Description: Used to reset the automatic counter in the counter-increment property

Browser Compatibility: O 4+

Inherited: No

Values:

Code Example:

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