27 December, 2010

Coloured bullet points

In my last post (below), I thought having the whole text green or red was overkill, so I found a way to change only the bullet's colour.

Normally, to change the whole line's colour, you'd use:
<ul>
<li style="color: lime;">text here</li>
</ul>

This changes the colour of the bullet as well. To make the font white, simply change it back!
<ul>
<li style="color: lime;"><span style="color: white;">white text, green bullet</span></li>
</ul>

No comments:

Post a Comment