Last active
February 28, 2023 21:00
-
-
Save 2thecrow/037e52126033379459ad7f8ca8da038c to your computer and use it in GitHub Desktop.
Styled list (ul) bullets
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
ul { | |
list-style: none; /* Remove default bullets */ | |
} | |
ul li::before { | |
content: "\2022"; /* Add content: \2022 is the CSS Code/unicode for a bullet */ | |
color: red; /* Change the color */ | |
font-weight: bold; /* If you want it to be bold */ | |
display: inline-block; /* Needed to add space between the bullet and the text */ | |
width: 1em; /* Also needed for space (tweak if needed) */ | |
margin-left: -1em; /* Also needed for space (tweak if needed) */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment