LINKDING

Shared bookmarks

The Undeniable Utility Of CSS <code>:has</code> • Josh W. Comeau

Tags
#PostRoll
Date added
Sept. 10, 2024, 10:04 p.m.
Description
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!