- Instant help with your CSS coding problems

Change HTML list bullet color

Question:
How to change HTML list bullet color?
Answer:
li::marker {
    color:red;
}
Description:

To change the color of a bullet in a list independent from the text use the ::marker pseudo-element. The ::marker selects the marker box of a list item, which typically contains a bullet or number.

Share "How to change HTML list bullet color?"
Tags:
change, bullet, color, dot, set, change bullet color, set bullet color, css, marker
Technical term:
Change HTML list bullet color