Created
August 4, 2019 17:45
-
-
Save maxdenaro/f49b39c870322842590feb24561d0f65 to your computer and use it in GitHub Desktop.
Custom numeric on CSS (counter-reset)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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