Created
August 25, 2018 09:22
-
-
Save im-sad/0b1bc42e55cd3c9241557298510d6dbe to your computer and use it in GitHub Desktop.
CSS counter
This file contains hidden or 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
ul { | |
counter-reset: num; | |
li { | |
counter-increment: nums; | |
&:before {content: counter(nums);} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment