WEMAXA.COM Design · Development · AI · Available worldwide
Studio / Wemaxa 01
Status Active Location Worldwide Focus Web + AI Delivery Remote Response < 1 Business Day
033CSS & LayoutPlain-English glossary

Media Query

In one sentence

A media query conditionally applies CSS according to characteristics of the output environment or viewport.

Media queries are commonly used for responsive layouts, motion preferences, color schemes, pointer capabilities and print styles.

Media Query033
01Condition
02Breakpoint
03Rule set
04Responsive result
CSS & LayoutMedia Query
A media query conditionally applies CSS according to characteristics of the output environment or viewport.
01

Conditional CSS based on environment

Media queries are commonly used for responsive layouts, motion preferences, color schemes, pointer capabilities and print styles. In practical terms, Media Query belongs to the presentation and layout layer. Knowing that layer is important because it tells you what the term can change, what it cannot change, and where to look when something behaves unexpectedly.

The useful questionWhen you see Media Query, ask: “What part of the system or design does this term describe, and what decision does it help me make?”
Concrete example

Changing rules at a viewport threshold

@media (max-width: 760px) can switch a two-column layout to one column when the viewport becomes narrow.

Quick checkTest immediately above and below the breakpoint and make sure content, not a device model, justifies the threshold.
02

Where media conditions alter a layout

Where it appearsresponsive stylesheets and browser responsive mode
Why you carewhen styles change according to viewport or device characteristics

You do not need to memorize the term in isolation. It becomes useful when you can recognize it in the tool, browser, file or conversation where the concept is doing real work.

EXAMPLECondition
CHECKResponsive result
See the distinction

A media query is not responsive design by itself

A media query conditionally applies CSS according to characteristics of the output environment or viewport. By contrast, A breakpoint is a chosen condition, usually a viewport width, at which a responsive layout changes. The two can appear in the same project, but they describe different parts of the work and should not be used as interchangeable labels.

03

The mistake: collecting arbitrary breakpoints

The common mistake is to use Media Query as if it also meant Breakpoint. That blurs two separate decisions and usually sends troubleshooting in the wrong direction. A better test is practical: Test immediately above and below the breakpoint and make sure content, not a device model, justifies the threshold.

Media QueryA media query conditionally applies CSS according to characteristics of the output environment or viewport.
BreakpointA breakpoint is a chosen condition, usually a viewport width, at which a responsive layout changes.
04

Why conditions should follow content needs

In day-to-day work, Media Query matters when styles change according to viewport or device characteristics. The practical value is not the vocabulary itself; it is being able to identify the right control, file, setting or decision when the concept becomes relevant.

@media (max-width: 760px) can switch a two-column layout to one column when the viewport becomes narrow. That example is useful because it turns the definition into something you can recognize, test and discuss with other people working on the same project.

05

Related terms worth learning next

06

Sources and further reading

Use these references when you need documentation-level detail, specifications or product-specific behavior beyond the plain-English explanation above.