Click to See Complete Forum and Search --> : How to chnage a bullet color
suresh.hv
12-19-2006, 06:35 AM
Hi Folks,
Can any one tell me how to change the color of a bullet????
<li>
<ul>one</ul>
<ul>two</ul>
</ul>
The text color should not change , only the bullet color should change.
Thanks,
Suresh.H.V.
This should help
http://www.echoecho.com/csslists.htm
You can use span.
<ul style="color: red;">
<li><span style="color: black;">Text</span></li>
</ul>
WebJoel
12-19-2006, 06:38 PM
What KDLA wrote, -shrunk a bit in case you have lots of <li>
Your CSS:li span {color:black;}Your HTML:
<ul>
<li style="list-style: disc; color: red;"><span>this first</span></li>
<li style="list-style: disc; color: orange;"><span>that second</span></li>
<li style="list-style: disc; color: blue;"><span>and third</span></li>
</ul>Saves you having to type all those
<span style="color: black;">Text</span>
over and over again.
See attached image:
WebJoel
12-19-2006, 06:45 PM
<li>
<ul>one</ul>
<ul>two</ul>
</ul>
Huh?? :p
Huh?? :p
[:D I saw that, too, and hoped - really hoped - it was a typographical error!]
WebJoel
12-20-2006, 08:03 AM
-Could be a drop-UP list maybe?? :D hehehee. Yeah, -most likely a typo..