Skip to content

Instantly share code, notes, and snippets.

@Koniksan
Created January 14, 2018 13:11
Show Gist options
  • Save Koniksan/e9f6a180cfde607872ba1a180643f7a7 to your computer and use it in GitHub Desktop.
Save Koniksan/e9f6a180cfde607872ba1a180643f7a7 to your computer and use it in GitHub Desktop.
Styling ordered list (multiple list support support)
ol {list-style:none;}
ol > li:first-child {counter-reset: item;} /* reset counter */
ol > li {counter-increment: item;} /* increment counter */
ol > li:before {content:counters(item, ".") ". "; font-weight:bold;} /* print counter */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment