<div class="first">
<div class="a">
<div class="b">
<div class="c">
</div>
</div>
</div>
</div>
<div class="first">
<div class="one">
</div>
</div>
I want to style div with class="first"(i.e,(2) from above) if there is a div with class="c".
Context: Here the div with class="c" will be dynamically generated,so if this div exits i want to apply css for div with class="first"(i.e,(2) from above).
What could be the css rule for the above case?