Adopting Container Queries
· 4 min read
As we move more and more toward responsive design there has been increasing interest in CSS container queries. For those of us who aren’t on the cutting edge of CSS development, container queries are a new feature that allows us to apply styles based on a containing element’s dimensions. This is conceptually similar to typical media queries, which are based instead on the qualities of the viewport as a whole.