On Tue, 6 Oct 2009, Richard Mather wrote:

> Hi all,
> 
> I'm wondering about colouring bullet points in a <ul> and wanted to know if
> there was a way of having the list-style: a different colour to the text
> within the <li> without having to resort to putting it all within a
> <span>as per my example:
> 
> <ul>
>     <li><span>content</span></li>
> </ul>
> 
> ul {
>     color:#380;
>     list-style-type:disc;
> }
> ul li span {
>     color:#000;
> }

<ul>
     <li class="black">content</li>
</ul>
 
ul {
    color:#380;
    list-style-type:disc;
}

ul li.black {
    color:#000;
}



-- 
   Chris F.A. Johnson, webmaster         <http://woodbine-gerrard.com>
   ===================================================================
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to