CSS Lists and Counters: Using CSS counters
CSS Lists and Counters: Using CSS counters
CSS counters are, in essence, variables maintained by CSS whose values may be incremented by CSS rules to track how many times they're used. This lets you adjust the appearance of content based on its placement in the document. CSS counters are an implementation of Automatic counters and numbering in CSS 2.1.
The value of a counter is manipulated through the use of counter-reset
. counter-incr