Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

media query

a CSS condition, often about viewport width, that applies rules only while that condition is true.

A little more detail

A min-width query is the mobile-first pattern: base styles describe the narrow layout, and the query adds the wider one. A max-width query instead overrides a wide layout. Queries can also match preferences such as prefers-reduced-motion. A query cannot fix a missing viewport meta element or an unbreakable child.

See it in practice

These lessons pair the idea with examples you can change and run.