RT T. Afif @ CSS Challenges
💡 CSS Tip!
Use the :has() selector and style your container based on its number of elements (direct children)
Demo:
⚠️ It doesn't count text nodes. Only tags!
#CSS
http://codepen.io/t_afif/pen/ZEomRYP
https://twitter.com/ChallengesCss/status/1579560086485495809