Last active
June 22, 2021 21:29
-
-
Save Fuwn/99bc2d97cbebbcff152f3e905981fde0 to your computer and use it in GitHub Desktop.
Counter Increment Boldening
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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