change color li css code example

Example 1: change text color li css

/*
li only changes its bullets color, if you want to change
the text, you must use the 'a' tag after the li
*/
li a{
    color: white;
}

Example 2: change bullet color css list

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) */
}

Tags:

Css Example