DEV Community

avcat
avcat

Posted on

:has(<such an element after current>)

Style the element, after which there is an element, that contains an element with class pink

:has(+ * .pink) {}
Enter fullscreen mode Exit fullscreen mode

Source.

Top comments (0)