Skip to content

Instantly share code, notes, and snippets.

@jnicol
Created November 18, 2020 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnicol/4a306781c8131ff3f0b7dc76325b8183 to your computer and use it in GitHub Desktop.
Save jnicol/4a306781c8131ff3f0b7dc76325b8183 to your computer and use it in GitHub Desktop.
/* source: https://stackoverflow.com/a/43763137/315045 */
ol, ul {
padding-left: 0;
}
li {
list-style: none;
padding-left: 1.25rem;
position: relative;
}
li::before {
left: 0;
position: absolute;
}
ol {
counter-reset: counter;
}
ol li::before {
content: counter(counter) ".";
counter-increment: counter;
}
ul li::before {
content: "●";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment