HTML & CSS · Middle · Question 63 of 75

How do you change the color of list bullets without touching the text?

li::marker { color: tomato; }

Explanation

::marker supports a limited set of properties such as color, font-* and content. For fully custom bullets use list-style: none and ::before.

Further reading

Problem with a question

HTML & CSS · Middle · question 63

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz