CSS counter-increment property
Usage
Increments a counter by the specified amount.
Values
- none - default; the counter is not incremented
- [name] [amount] - increments the counter called
[name]by the specified[amount]. The default increment amount is 1
Example
Code:
To number paragraphs:
p:before {
content: counter(pnumber);
counter-increment: pnumber;
}