I am messing around with this concept, but it is not seeming to work for
me

Take this css:

        * #nav li li {
        color:#FF9900;
        }

(I have also tried it without the *) 

On html like:

<div id="nav">
<ul>
        <li>test line 1</li>
        <li>line 2</li>
        <li>line 3</li>
</ul>
</div>

I am not seeing any changes, and I would have expected to see line 2
turn orange.

Am I messing something?

-------------------------

Jessica Mays
Graphic Designer
WebSurveyor Corporation

-----Original Message-----
From: Ben Henick [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 10, 2005 4:34 PM
To: Jessica Mays
Cc: [email protected]
Subject: Re: [css-d] Can someone explain this to me

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