Victor Subervi wrote:
> On Fri, Nov 13, 2009 at 11:01 AM, Jack Timmons <[email protected]> wrote:
>
>   
>> On Fri, Nov 13, 2009 at 9:59 AM, Victor Subervi <[email protected]>
>> wrote:
>>     
>>> Hmm. I added this and it didn't work:
>>>
>>> #menu ul ul li ul li
>>> {
>>> color: #fff;
>>> }
>>>
>>> Please take a look:
>>> http://angrynates.com/nrelectric.com/Events.py?browser=all
>>> Mouse over "Services" in the nav.
>>> TIA,
>>> V
>>>       
>>>> --
>>>> -Jack Timmons
>>>> http://www.trotlc.com
>>>> Twitter: @codeacula
>>>>         
>> That is because you're missing the "a" to specify for the anchor tag.
>> Otherwise, the #menu a declaration overrides any color set in the li
>> element.
>>
>>  #menu ul ul li ul li a
>> {
>> color: #fff;
>> }
>>
>>     
>
> Thanks! But I thought "a" was for anchor. Please explain.
> V
>   




#menu ul ul li ul li a {color: #fff; }

Selects any a element that is a descendant of a li element that is a 
descendant of an ul element that is a descendant of a li element that is 
a descendant of an ul element that is a descendant of an ul element that 
is a descendant of any element with an id attribute that equals menu.

"Selectoracle" comes in handy now and then for explanation of complex 
CSS selectors <http://gallery.theopalgroup.com/selectoracle/>

Best,

~d


______________________________________________________________________
css-discuss [[email protected]]
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/

Reply via email to