Web features explorer

Media query range syntax

Newly available since 2023-03-27
Tags: css Groups: CSS > Media queries

The range syntax of CSS media queries allows you to use mathematical comparison operators such as <, >, <=, and >= to define a range of values for a media query. For example, (400px < width < 1000px) returns true if the viewport width is between 400px and 1000px. To learn more, see Using media queries at MDN.

Compatibility (view on caniuse.com)