Created
October 25, 2012 02:06
-
-
Save danro/3950062 to your computer and use it in GitHub Desktop.
iphone media queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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
For iPhone 5 is any other media query bcz i try above but not working.