Jeffrey Way hat auf nettuts+ ein tolles Tutorial publiziert, das darauf eingeht, wie man mit der CSS-Eigenschaft counter-increment einen Zähler realisiert.
The
counter-increment
property can accept either one or two properties. The first is anid
that you will later use to reference this specific counter. You may also pass a second parameter that refers to the increment. For example, instead of 1, 2, 3, 4, you could switch to 5, 10, 15, 20 by applying:counter-increment: boxes 5
.
Das Video zeigt wie es geht: