counter-reset

Resets a counter to the specified value.

Platform Support

IENetscapeMozillaOperaSafari
nonono7.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.
inheritInherit the value from the parent element.
noneNo 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

text_css aptana_docs