Skip to content

Instantly share code, notes, and snippets.

@jnicol
Created November 18, 2020 21:53
Embed
What would you like to do?
/* 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