Skip to content

Instantly share code, notes, and snippets.

@nanna-dk
Created November 30, 2018 13:31
Show Gist options
  • Select an option

  • Save nanna-dk/d703754f6e542edba89590b4ca284a14 to your computer and use it in GitHub Desktop.

Select an option

Save nanna-dk/d703754f6e542edba89590b4ca284a14 to your computer and use it in GitHub Desktop.
Media query minimum and maximum OR...
/* When the width is between 600px and 900px OR above 1100px - change the appearance of <div> */
@media screen and (max-width: 900px) and (min-width: 600px), (min-width: 1100px) {
div.example {
font-size: 50px;
padding: 50px;
border: 8px solid black;
background: yellow;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment