list item color css code example
Example 1: how to change only bullet color in css
li::before {content: "•"; color: red;
display: inline-block; width: 1em;
margin-left: -1em}
Example 2: how to change only bullet color in css
li::before {content: counter(li); color: red;
display: inline-block; width: 1em;
margin-left: -1em}
Example 3: change bullet color css list
ul {
list-style: none;
}
ul li::before {
content: "\2022";
color: red;
font-weight:
bold;
display: inline-block;
width: 1em;
margin-left: -1em;
}