Karuppiah RK
Karuppiah RK

Reputation: 3964

show background color for active class

JsFiddle

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

Answers (1)

Max Al Farakh
Max Al Farakh

Reputation: 4476

There are no a elements with .active class in your fiddle, so I assume that you are talking about the spans.

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

Related Questions