Lorin Rivers wrote:

> I can't get the color to change and this rule doesn't seem to be
> working. Any ideas about what I'm doing wrong?
> 
> Here's some sample code:
> 
> body.section-2 benefits ul#menu li#nav-2 ul#subnav-2 li#benefits a {
>       color: white;
> }
> 
> 
> <body class="section-2 benefits">
>       <ul id="menu">
>               <li id="nav-1"><a href="/static/main.html">Home</a></li>
>               <li id="nav-2"><a href="/index.html">Customer Connect</a>
>                       <ul id="subnav-2">
>                               <li id="overview" class="subfirst"><a 
> href="/index.html">Overview</a></li>
>                               <li id="benefits"><a 
> href="/benefits.html">Benefits</a></li>



There is no benefits element,
its a class and needs the dot

body.section-2.benefits

"Selects any body element with a class attribute that contains the word 
section-2 and a class attribute that contains the word benefits.", says 
Selectoracle [1].

But unfortunately, this will break in IE due to the multiple class bug [2].


Actually, this is not ultra-specificity, but über (uber in your language).

Ingo

[1] http://penguin.theopalgroup.com/cgi-bin/css3explainer/selectoracle.py

[2]
http://css-discuss.incutio.com/?page=MultipleClasses

-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to