DEV Community

Lara
Lara

Posted on

:has() in CSS

Hi everyone! I recently learned the usefulness of :has() in CSS. It can style an element if any of the things we’re searching for inside it are found and accounted for. It’s like saying, “If there’s something specific inside this box, then style the box this way AND only this way.” Definity going to give it a try in my next web project!

Top comments (0)