On May 15, 2006, at 11:25 PM, Monica Carlino wrote:

> But we are talking about a child selector, not a descendant one.
>
> So, I suppose, the style should be applied only to the first child  
> of ul, that is <li> in the main list and not <li> in the sublist  
> (that it is not child of ul id="nav")...

But your second <li> contains the nested ul, and font-weight is  
inherited [1].
#nav>li {font-weight:bold}
means in this case: everything that is inside the li will have font- 
weight bold.

Look at your code:
>>> <li>Servizi
>>>            <ul>
>>>                 <li>Design</li>
>>>                 <li>Sviluppo</li>
>>>            </ul>
>>>  </li>

that <li> wraps around the nested ul.

Add a border to your styleblock
#nav>li {font-weight:bold; border:1px solid red}
And see what happens. border is not inherited, and does not apply to  
the second level <li>


[1] <http://www.w3.org/TR/CSS21/fonts.html#propdef-font-weight>
Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to