Skip to content

Glossary: CSS Layout and Responsive Design

@media

Also written: media query, media queries, media feature

An at-rule that applies CSS only when a condition is true, such as the window being at least 48rem wide. The condition is made from a media feature such as `width` or `prefers-color-scheme`.

Where the book teaches it

Related terms

BreakpointRange syntaxMobile first