On May 3, 2006, at 5:56 AM, Dagmar Noll wrote:

> #header ul
> #header p
> #header img
> #sections h1
> #sections h2
> #section p
>
> If this is valid CSS, are there any major red flags regarding using
> descendant selectors based on IDs?

All of the above will work perfectly. However, keep in mind that  
"#header p" will style all p tags inside the header, so if you had:

<div id="header">
        <p>Blah</p>
        <div class="other">
                <p>Yadda</p>
        </div>
</div>

Both 'Blah' and 'Yadda' will get styled. To style only 'Blah', you'd  
use the child selector ">", which IE doesn't support (of course).  
It's supported in IE7, though.

-Tyson
______________________________________________________________________
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