CSS:counter-reset
From MDC
« CSS Reference « CSS Reference:Mozilla Extensions
[edit] Summary
counter-reset is used to reset CSS Counters to a given value.
- Initial value:
- Applies to: all elements
- Inherited: no
- Percentages: N/A
- Media:
visual - Computed value:
[edit] Syntax
counter-reset: [<identifier> <integer>?]+ | inherit | none
[edit] Values
- identifier
- The name of the counter to reset.
- integer
- The value to reset the counter to on each occurrence of the element. Defaults to 0 if not given.
You may specify as many counters to reset as you want, each separated by a space.
[edit] Related properties
- counter-increment increases the value of specified CSS Counters by a given amount.
[edit] Examples
h1 {
counter-reset: chapter section 1 page;
/* Sets the chapter and page counters to 0
and the section counter to 1. */
}