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.
Reference:
The ::marker reference
Share "How to change HTML list bullet color?"
Related snippets:
Tags:
change, bullet, color, dot, set, change bullet color, set bullet color, css, marker Technical term:
Change HTML list bullet color