Created
April 8, 2015 05:11
-
-
Save grabcode/bc5a1c3c092088f3330e to your computer and use it in GitHub Desktop.
CSS Counter
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
.custom-counter{ | |
list-style-type: none; | |
&>li{ | |
counter-increment: step-counter; | |
&:before{ | |
content: counter(step-counter); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment