Skip to content

Glossary: CSS Layout and Responsive Design

@container

Also written: container query, container queries

An at-rule whose rules apply depending on the width of the nearest container element, not the window. A product card can then lay itself out differently in a narrow sidebar and a wide main area.

Where the book teaches it

Related terms

container-type@media