Previous Message
Next Message

coloring OL item numbers

Sent by Philippe Wittenbergh on 29 September 2007 03:03


On Sep 29, 2007, at 8:41 AM, Anthony Ettinger wrote:

> I've also tried re-implementing the counter and counter-increment css
> properties for <ol> but that also is only supported in Opera and FF.
And Konqueror and Safari, although those implementations are a bit  
buggy.
It should work for your purposes, as long as you don't deal with  
nested lists and multiple lists.

> ...
>
> Is there a "CSS way" of handling it without extraneous markup:
>
> <li><span>foo</span></li>
That is pretty much all you can do, as long as counters are not  
implemented in IE.
li {color:red;}
li span {color:green}

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>




______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: