Hello,

in your case the result should be the same.

Only if you had used both selectors, then the rule for #nav li ul li 
would have a higher specificity than #nav li li, so if there are 
definitions for the same properties in both rules, then the ones from 
the first would overwrite the ones from the second.

See http://www.w3.org/TR/CSS21/cascade.html#specificity for more 
information.

Best regards,

Christian Kirchhoff
*Directmedia Publishing GmbH* · Möckernstraße 68 · 10965 Berlin
www.digitale-bibliothek.de
AG Berlin-Charlottenburg · HR B 58002 · USt.Id. DE173211737
Geschäftsführer: Ralf Szymanski


[EMAIL PROTECTED] schrieb:
> My navigation menu has the following tree: div - ul - li - ul - li
>
> Is #nav li li the same as #nav li ul li? Do you need to include the ul when
> styling the last li?
>
> Thanks for the help--I appreciate it!
>
>
>
> Please consider the environment before printing this e-mail 
>
> ______________________________________________________________________
> 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/
>   
______________________________________________________________________
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