Skip to content

Instantly share code, notes, and snippets.

@shahab570
Created January 17, 2021 13:49
Show Gist options
  • Save shahab570/c73e1cb070fd21c077f06e8ff9bd3cce to your computer and use it in GitHub Desktop.
Save shahab570/c73e1cb070fd21c077f06e8ff9bd3cce to your computer and use it in GitHub Desktop.
@media only screen and (max-width: 400px) {
.box {
background-color: red;
}
}
@media only screen and (max-width: 800px) {
.box {
background-color: blue;
}
}
@media only screen and (max-width: 1200px) {
.box {
background-color: yellow;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment