Is there a way to apply style on the parent selector based on the class specified in the child. I know this can be done in Javascript but I am trying to find a solution which can be applied on my css file. I tried:
div < .active {
background:red;
}
but it selects/applies style only the child. I want the style to be applicable on the div parent here for example.
Any suggestions on this?
Thanks in advance.