CSS Counter-Reset Property
CSS 1 |
CSS 2 |
CSS 3 |
|
|
|
|
Description
Used to reset the automatic counter in the counter-increment property
Syntax
counter-reset: [identifier] [integer] ...
Possible values
- none
- [identifier] [integer]
- inherit
Initial Value
None
Applies To
All elements
Inherited
No
Media
All
Example
h1:before {
content: "Chapter " counter(chapter) ":"
counter-increment: chapter;
counter-reset: section;
}
Loading Twitter