I have an unordered list, using bootstraps "tabs" plugin. The code looks like this:
<ul>
<li class="active span3"><a href="#ourAgency" data-toggle="tab"><i class="icon-building icon-3x"></i>Our Agency</a></li>
<li class="span3"><a href="#studentVisas" data-toggle="tab"><i class="icon-laptop icon-3x"></i>Student Visas</a></li>
<li class="span3"><a href="#workVisas" data-toggle="tab"><i class="icon-suitcase icon-3x"></i>Work Visas</a></li>
<li class="span3"><a href="#accreditation" data-toggle="tab"><i class="icon-legal icon-3x"></i>Accreditation</a></li>
</ul>
I'd like to use CSS3 to change the colour of all the <a>
links whose parent <li>
DOESN'T have the class .active
.
I've tried something like this:
a:not(li.active>a){
color:grey;
}
but to no avail. Is there any way to do this or am I barking up the wrong tree?