This content originally appeared on DEV Community and was authored by avcat
That's it! I think we can finally start using more convenient syntax for media queries.
/* Newer syntax */
@media (768px < width <= 1024px) {
body {
background-color: lightblue;
}
}
/* Older syntax */
@media (min-width: 769px) and (max-width: 1024px) {
body {
background-color: lightblue;
}
}
Source: caniuse.
This content originally appeared on DEV Community and was authored by avcat
avcat | Sciencx (2025-09-02T09:40:04+00:00) @media (768px < width <= 1024px) – 92% support (Media Queries Range Syntax). Retrieved from https://www.scien.cx/2025/09/02/media-768px-width-1024px-92-support-media-queries-range-syntax-2/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.