How to reach li.one
only when li.two
has .active
using CSS?
<ul>
<li class="one"></li>
<li class="two active"></li>
<li class="three"></li>
</ul>
I try this but it does not work.
<style type="text/css">
li.one ~ li.two.active{
/* to do something */
}
</style>