Skip to content

Commit

Permalink
Include limit in range (mdn#20152)
Browse files Browse the repository at this point in the history
  • Loading branch information
teoli2003 authored and goshdarnheck committed Sep 7, 2022
1 parent 3b11c40 commit d9f53c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/learn/css/css_layout/media_queries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ These features are used to create layouts that respond to different screen sizes

[Open this example](https://mdn.github.io/css-examples/learn/media-queries/width.html) in the browser, or [view the source](https://github.com/mdn/css-examples/blob/main/learn/media-queries/width.html).

The `width` (and `height`) media features can be used as ranges, and therefore be prefixed with `min-` or `max-` to indicate that the given value is a minimum, or a maximum. For example, to make the color blue if the viewport is narrower than 600 pixels, use `max-width`:
The `width` (and `height`) media features can be used as ranges, and therefore be prefixed with `min-` or `max-` to indicate that the given value is a minimum, or a maximum. For example, to make the color blue if the viewport is 600 pixels or narrower, use `max-width`:

```css
@media screen and (max-width: 600px) {
Expand Down

0 comments on commit d9f53c6

Please sign in to comment.