Hi all!

Just wondering: is there a way in CSS to set the properties of an element if
it has a particular child?

For (a very simplistic) example:

<div>
  <p>Some Text</p>
</div>
<div>
  <p id="par2">Some Text</p>
</div>
<div>
  <p>Some Text</p>
</div>
<div>
  <p>Some Text</p>
</div>


I want to make the background of the <div> element green IF it contains the
id "par2".


Cheers,

Seona.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- 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