Day 67: counting children

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
There are a lot of interesting things you can do with the :has() pseudo-class. I’ve already covered some of them on day 26.If you want to style an element based on the number of direct children it has, you can do that with just CSS. Let's say you want to style a list in a certain way when it contains at least three items. You use the :has()...