Skip to content

Instantly share code, notes, and snippets.

@im-sad
Created August 25, 2018 09:22
Show Gist options
  • Save im-sad/0b1bc42e55cd3c9241557298510d6dbe to your computer and use it in GitHub Desktop.
Save im-sad/0b1bc42e55cd3c9241557298510d6dbe to your computer and use it in GitHub Desktop.
CSS counter
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