CSS Counters for Custom Counting


Implement custom counters for lists or headings.

Source Code

body {
    counter-reset: section-counter;
}
h2::before {
    counter-increment: section-counter;
    content: "Section " counter(section-counter) ". ";
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments