random1 Posted July 23, 2010 Share Posted July 23, 2010 Hi All, I have an unordered list (ul) that is blue but I want the bullets to be a different colour. How can I do this using CSS styling? Link to comment https://forums.phpfreaks.com/topic/208646-unordered-list-styling/ Share on other sites More sharing options...
V Posted July 24, 2010 Share Posted July 24, 2010 Hello. This tutorial should answer your question http://www.echoecho.com/csslists.htm Link to comment https://forums.phpfreaks.com/topic/208646-unordered-list-styling/#findComment-1090683 Share on other sites More sharing options...
haku Posted July 24, 2010 Share Posted July 24, 2010 Do you mean the text is blue, and you want the bullets to be a different color? The easiest way is to wrap your text in spans: <li><span>This text is blue. The bullet is red</span></li> CSS: li { color:red; } li span { color:blue; } Untested, but it should work. Link to comment https://forums.phpfreaks.com/topic/208646-unordered-list-styling/#findComment-1090685 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.