Previous Message
Next Message

Re: [css-d] Styling lists - bullets and text in different colors?

Sent by Lachlan Cannon on 7 September 2002 15:03


Nik Schramm wrote:

> [...]
> 
> ul { color: red; font-size: 10px; }
> .text { color: blue; font-size: 30px; }
> 
> </style>
> 
> [...]
> 
> <ul>
>     <li><span class="text">Hello World</span></li>
>     <li><span class="text">Hello World</span></li>
> </ul>
> 
> [...]

Or to cut down on filesize a little

li {
	color: grey;
}
li * {
	color: black;
}

...

<ul>
	<li><span>Houston, we have a problem.</span></li>

...

-- 
Lach
__________________________________________
Web: http://illuminosity.net/
E-mail: lach @ illuminosity.net
MSN: luminosity @ members.evolt.org
__________________________________________
Previous Message
Next Message

Possibly related: