The counter-increment
property is intended to increase the value of the increment counter, which is set by the counter-reset
property.
This counter counts the number of times elements are rendered on the page, and can be displayed using the content
property and the ::after
and ::before
pseudo-elements. This allows you to create lists (including multi-level ones), in which the numbering and appearance are specified through styles.
counter-increment: [ custom-ident integer? ]+ | none;