Change Language


Follow Navioo On Twitter

counter-reset

Resets a counter to the specified value.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
no no no 7.0+ no

Usage

[counter-name] [reset-value]. Example values: chapter-subhead 0, chapter 1, etc.

Values

* Specify a value for counter-reset that is not on this list.
inherit Inherit the value from the parent element.
none No reset.

Example

To specify a level-1 section heading with an incremented Roman numeral before each heading and that sets a counter called "section" to "1" each time it occurs, use the following syntax: H1:before {counter(chapter, upper-roman); counter-increment: section; counter-reset section 1;}.

Availability

W3C CSS2

Related

Ajax Javascript feed

↑ Grab this Headline Animator