Sent by Steve Clason on 3 January 2005 18:06
On 1/3/2005 10:54 AM Marty Martin wrote:
> How are the two declarations different?
Yes.
div#sample>p {
}
selects any _child_ of #sample that is a p. This:
<div id=#sample>
<p></p>
</div>
....but not this:
<div id=#sample>
<div id="somethingElse">
<p></p>
</div>
</div>
This one:
div#sample p {
}
....selects any _descendant_ of #sample that is a p, no matter what
generation, so would select the p in both of the above examples
--
Steve Clason
Web Design and Development
Boulder, Colorado, USA
www.topdogstrategy.com
(303)818-8590
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/