Reputation: 3964
I have posted my full codes on jsfiddle.
I want this -> if .panel #Default a .active
show different background color for .vehicle_details
class
I have tried this code
.panel #Default a .active:.vehicle_details
{
background: #000000;
}
but its not working. See my jsfiddle link
Upvotes: 0
Views: 143
Reputation: 4476
There are no a
elements with .active
class in your fiddle, so I assume that you are talking about the span
s.
There is currently no way to select the parent of an element in CSS. I would apply the .active
class straight to the .vehicle_details
element. Otherwise you cannot do that via CSS.
Upvotes: 5