Jump to content

pure css select parent element?


shortysbest

Recommended Posts

I have a css class:

 

.post-controls li

 

Then I have an element inside of it called:

.liked

 

is there a way to have a class that changes the background of post-controls li if the child element is called .liked

 

something like:

.liked .post-controls li

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.