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> Link to comment https://forums.phpfreaks.com/topic/64801-solved-changing-the-color-of-the-numbers-on-an-ol/ 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> Link to comment https://forums.phpfreaks.com/topic/64801-solved-changing-the-color-of-the-numbers-on-an-ol/#findComment-323377 Share on other sites More sharing options...
Northern Flame Posted August 14, 2007 Author Share Posted August 14, 2007 yea it worked Link to comment https://forums.phpfreaks.com/topic/64801-solved-changing-the-color-of-the-numbers-on-an-ol/#findComment-323955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.