Skip to content

Instantly share code, notes, and snippets.

@ivanmendoza
Created May 12, 2012 07:24
Show Gist options
  • Save ivanmendoza/2664948 to your computer and use it in GitHub Desktop.
Save ivanmendoza/2664948 to your computer and use it in GitHub Desktop.
Common media queries
/* SMARTPHONES */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
}
/* TABLETS */
@media screen and (min-width: 481px) and (max-width: 1024px) {
}
/* DESKTOP */
@media screen and (min-width: 1025px) {
}
/* IPHONE4 (RETINA DISPLAY) */
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment