Possible Duplicate:
Complex CSS selector for parent of active child
I have the following html:
<ul>
<li><href ="#">One</a></li>
<li><href ="#" class="active">Two</a></li>
<li><href ="#">Three</a></li>
</ul>
I want to target an li who has a child anchor with a class of active:
I believe something like this would work in css4:
li! > a.active {
I have the following sass which is not working:
ul{
li{
a.active &{
//whatever
}
}
}
What would be the correct way of targeting the parent that has a child with a certain class?