Skip to content

Instantly share code, notes, and snippets.

@Fuwn
Last active June 22, 2021 21:29
Show Gist options
  • Save Fuwn/99bc2d97cbebbcff152f3e905981fde0 to your computer and use it in GitHub Desktop.
Save Fuwn/99bc2d97cbebbcff152f3e905981fde0 to your computer and use it in GitHub Desktop.
Counter Increment Boldening
/* Counter Increment Boldening */
ol {
margin: 0 0 1.5em;
padding: 0;
counter-reset: item;
}
ol>li {
margin: 0;
padding: 0 0 0 2em;
text-indent: -2em;
list-style-type: none;
counter-increment: item;
}
ol>li:before {
display: inline-block;
width: 1em;
padding-right: 0.5em;
font-weight: bold;
text-align: right;
content: counter(item) ".";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment