Skip to content

Instantly share code, notes, and snippets.

@htr3n
Last active July 25, 2018 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save htr3n/30159c94ac8f4cbaf0c8510c752d5ef1 to your computer and use it in GitHub Desktop.
Save htr3n/30159c94ac8f4cbaf0c8510c752d5ef1 to your computer and use it in GitHub Desktop.
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
//...
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
//...
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
//...
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
//...
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
//...
}
///////////////////////////////////////////////////
/* Landscape */
@media only screen and (orientation: landscape) {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment