Skip to content

Instantly share code, notes, and snippets.

@maxdenaro
Created August 4, 2019 17:45
Show Gist options
  • Save maxdenaro/f49b39c870322842590feb24561d0f65 to your computer and use it in GitHub Desktop.
Save maxdenaro/f49b39c870322842590feb24561d0f65 to your computer and use it in GitHub Desktop.
Custom numeric on CSS (counter-reset)
ol {
counter-reset: section;
}
li {
display: inline-block;
padding-left: 10px;
}
li::before {
counter-increment: section;
content: "0"counters(section, ".") ". ";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment