Style a parent element based on its number of children using CSS :has()
If you were a fan of quantity queries, you’re going to love being able to style a parent element based on how many children it has. Awesome post from Bramus!
:has()
If you were a fan of quantity queries, you’re going to love being able to style a parent element based on how many children it has. Awesome post from Bramus!