The :has() pseudo-class is a relatively new addition to CSS, and it allows you to style an element based on the presence of a specific child element.
Share this post
Using :has() pseudo-class to style parent…
Share this post
The :has() pseudo-class is a relatively new addition to CSS, and it allows you to style an element based on the presence of a specific child element.