Jump to content

Bullet Color


Juuuergen

Recommended Posts

I've created an unordered list and I want to change the color of the bullets themselves (not the text next to each bullet). How can I do that with CSS?

Link to comment
Share on other sites

You can change the color property for the <li> element.

ul.mylist li { color: red; }

Then put the text within a <span> and color it however you want to:

ul.mylist li span { color: blue; }

<li><span>Text</span></li>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...