Email or username:

Password:

Forgot your password?
Ahmad Shadeed

🎉 I'm happy to publish a new interactive guide about CSS :has() selector.

The guide includes *tons* of visual and interactive demos that teach you everything you need to use :has() today.

ishadeed.com/article/css-has-g

Happy reading!

A figure that shows a website header
Delete modal
A visual demo that showcase the usage of :has() to control a shelf with books.
A demo that shows how to use the value of a checkbox without JS.
8 comments
The Tenth Traveler

@shadeed9 I just quickly looked over this guide, but it is very well written and has a lot of great examples. Thank you for putting this together. Bookmarked!

dragfyre

@shadeed9 but the burning question is, can i :has(cheezburger)?

Ondrej Sevcik

@shadeed9 great article!

It's great to see that many use cases that required UI framework before can now be achieved with pure CSS only.

Scott Martin

@shadeed9 This is so useful and delightfully implemented, thanks a lot!

Daniel

@shadeed9 This is the 2nd post I'm stumbling upon and reading back to back (the other one on target sizes) and it's of such high quality - again - I can't believe you're putting them out there just like that 😍 🤌✨

Ahmad Shadeed

@djh Oh, thank you so much. It means a lot! 🙏

Go Up