Possible Duplicate:
Is there a CSS parent selector?
Say I have the following CSS:
<div class="div1">
    <div class="div2">
        <div class="div3">
            <ul class="div4">
                <li class="div5">
                </li>
            </ul>
        </div>
    </div>
</div>
Is there a way to target, if li.div5 then target .div1 so like change the background of .div1 if li.div5 ?
 
     
     
     
     
    