Hello is there a way to style the parent when there are some conditions on the child,like when it's empty or it has a certain attribute?
like
.parent{background-color:red;}
.child:empty.parent{
background-color:yellow;
}
Hello is there a way to style the parent when there are some conditions on the child,like when it's empty or it has a certain attribute?
like
.parent{background-color:red;}
.child:empty.parent{
background-color:yellow;
}