A Friendly Introduction to Container Queries

from blog Josh Comeau's blog, | ↗ original
↗ original
It’s been a couple of years since container queries started landing in browsers… so why isn’t anyone using them? It turns out that container queries are kinda tricky; they’re not as straightforward as media queries. In this tutorial, we’ll break it all down and make sense of them, so that you can start using them in your work.