So ".sf-menu li.sfHover > a"

Applies that style to any A element that is a child of li.sfHover that
is a descendent of sf-menu.

What in superfish is happening? Is the code setting the attribute
sfHover to the item when you traverse its children?

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Nathan Klatt
Sent: Tuesday, February 09, 2010 8:02 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Superfish text color with parent - Really need
help, thanks

On Tue, Feb 9, 2010 at 5:45 PM, Gary Herbstman <ga...@bytesolutions.com>
wrote:
> Cool, That did the trick, THANKS!

You're welcome.

> I would love to understand this better. What exactly is this doing?

Well, what's happening is the cascade. Where there are style clashes,
whatever rule is the most specific/has the highest specificity will be
applied. Read through this first link - or even just the table at the
top - with an eye for the rule you had and what I added and I think
you'll get it.

http://www.w3.org/TR/CSS21/selector.html
http://www.w3.org/TR/CSS21/cascade.html

Nathan

Reply via email to