Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jrodriguez-ifuelinteractive/8718071 to your computer and use it in GitHub Desktop.
Save jrodriguez-ifuelinteractive/8718071 to your computer and use it in GitHub Desktop.
/* iPhone 3 portrait */
@media (device-height: 480px) and (-webkit-max-device-pixel-ratio: 1) and (orientation:portrait) {
}
/* iPhone 3 landscape */
@media (device-height: 480px) and (-webkit-max-device-pixel-ratio: 1) and (orientation:landscape) {
}
/* iPhone 4 retina portrait */
@media (device-height: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation:portrait) {
}
/* iPhone 4 retina landscape */
@media (device-height: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation:landscape) {
}
/* iPhone 5 or iPod Touch 5th generation, portrait */
@media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) and (orientation:portrait) {
}
/* iPhone 5 landscape */
@media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) and (orientation:landscape) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment