Skip to content

Instantly share code, notes, and snippets.

@dahngeek
Forked from ivanmendoza/media-queries.css
Created July 6, 2012 04:34
Show Gist options
  • Save dahngeek/3058106 to your computer and use it in GitHub Desktop.
Save dahngeek/3058106 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