Media query range syntax
Widely availableThe 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.
Safari Browser
iOS
16.4