CSS & DesignIntermediate
CSS Container Queries
Apply styles based on the size of a container element, not the viewport. Components that adapt to their layout context — sidebars, card grids, and embeddable widgets — without JavaScript.
CSSContainer QueriesResponsiveComponents
View on CSS & Design
Opens official documentation at developer.mozilla.org