663 shaares
3 results
tagged
containerqueries
A container query can contain viewport units, meaning you can compare the window vs the element and make choices.
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.
A step-by-step guide showing how to use container queries with cross-browser fallbacks.