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? Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/208646-unordered-list-styling/#findComment-1090685 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.