Skip to content

Understanding and using the new CSS style queries

blog.logrocket.com
3 pointsliberia2 comments
On HN

Comments

Oh that does look interesting and can lead to some very flexible styling. I can't seem to find this on caniuse.com what name should I use to search?

The above code queries the card container based on its size, and effects change only when the card has a width of 420px or above.

Typo? Code shows 600px

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.