title: Is there a CSS "haschildren" selector?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="http://stackoverflow.com/questions/1014861/is-there-a-css-parent-selector">Is there a CSS parent selector?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a css selector I can use only if a child element exists?</p>
  
  <p>Consider:</p>
  
  <pre><code>&lt;div&gt; &lt;ul&gt; &lt;li&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;
  </code></pre>
  
  <p>I would like to apply <code>display:none</code> to div only if it doesn't have at least one child <code>&lt;li&gt;</code> element.</p>
  
  <p>Any selector I can use do this?</p>