New Sep 9, 2024

The Undeniable Utility Of CSS :has

More Front-end Bloggers All from Josh Comeau's blog View The Undeniable Utility Of CSS :has on joshwcomeau.com

Of all the latest and greatest CSS features, the “:has” pseudo-class wasn’t exactly at the top of my wishlist. Once I started using it, however, I kept discovering incredible things I could do with it. It’s now become a core part of my toolkit! In this blog post, I'll show you some practical real-world problems I solved using “:has”, as well as some wild experiments that blew my mind!

Keep reading.


Scroll to top