Northern Flame Posted August 14, 2007 Share Posted August 14, 2007 I want to change the color of the numbers on an organized list, example, 1. a 2. b 3. c 4. d i want the numbers to be one color and the letters a different color, is their a way to easily do this in CSS or do i have to do it like this: <ol style="color:#ffffff;"> <li><font color=black>a</font></li> <li><font color=black>b</font></li> <li><font color=black>c</font></li> <li><font color=black>d</font></li> </ol> Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 14, 2007 Share Posted August 14, 2007 try this css ul li { color: #f00; } ul li span { color: #00f; } html <ul> <li><span>a</span></li> <li><span>b</span></li> <li><span>c</span></li> <li><span>d</span></li> </ul> Quote Link to comment Share on other sites More sharing options...
Northern Flame Posted August 14, 2007 Author Share Posted August 14, 2007 yea it worked Quote Link to comment 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.