Media Queries

Media queries are used to make your page responsive to different size screens, windows, and devices. ## Viewports * The screen/device/window’s width where your html (styled by your css) is being rendered. * Check it out in the inspector * There are lots of different viewports: CSS-Tricks: Media Queries for Standard Devices

Parts of a Media Query

@media ${media-type}, (${media-feature}: ${feature-value}) {
  ${css-selector} {
    ${css-style}: ${style-value};
    ...
  }
}
  1. @media
  2. Media Types
  3. Media Features
  4. Selectors and styles

Using Media Features