Skip to content

Instantly share code, notes, and snippets.

@KnightAlex
Created February 8, 2019 11:10
Show Gist options
  • Save KnightAlex/6b1eabeceec10f53e5ee31dd088c5f84 to your computer and use it in GitHub Desktop.
Save KnightAlex/6b1eabeceec10f53e5ee31dd088c5f84 to your computer and use it in GitHub Desktop.
Bullet colour
ul {
list-style: none;
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: 20px; /* Also needed for space (tweak if needed) */
margin-left: -2px; /* 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