Categories
Set style to parent if there is a child?
How to style a div if it has an a tagdiv:not(a){} /* обратная выборка этого */
div:not(a){} /* обратная выборка этого */
Answer the question
In order to leave comments, you need to log in
There is no way to achieve this with CSS right now. Maybe in the future CSS4 will have :has() .
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question