See the below example to add numbering using :before
And if you want to style all the input fields.
ul {
counter-reset: number;
}
ul li {
counter-increment: number;
}
ul li::before {
content: counter(number)" ";
}
- List item
-
- List item
-
- List item
-
- List item
-
- List item
-
Example:
- List item
- List item
- List item
- List item
- List item