Lesson 34 of 50
cssCSS Counters – Automatic Numbering
5 mins
Course progress68%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 34 of 50
css5 mins
Keep these ideas in mind as you work through the lesson.
Counters let you generate numbers without extra markup.
ol { counter-reset: item; }
ol li::before { counter-increment: item; content: counter(item) ". "; }