On Fri, 10 Jun 2005, Jessica Mays wrote:

> There are some long css references that I don't fully understand and I
> was hoping some nice soul would walk me through them.
> 
> Ex.    #nav li.nav-fanzone.sfhover a.img-fanzone

> Does this mean inside the #nav id area > the li that has a class of both
> nav-fanzone and sfhover and followed by a an <a> tag with a class of
> img-fanzone?

While I've yet to write anything that requires me to use a selector that 
refers to two classes on the same element, your description is accurate.

The only embellishment I would give to your description is that that 
selector applies to any anchor child of any list item child of #nav that 
uses the desired classes (as opposed to an immediate descendant element).

> Can one item have more than one class assigned to it?

Yes - <div class="foo bar">This is an element with two classes.</div>

http://www.w3.org/TR/CSS21/selector.html#class-html


--
Ben Henick                "In the long run, men hit only what they aim
Sitebuilder At-Large       at.  Therefore, though they should fail
http://www.henick.net/     immediately, they had better aim high."
[EMAIL PROTECTED]       -- Henry David Thoreau

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to