Created
May 21, 2013 23:45
-
-
Save afragen/5624201 to your computer and use it in GitHub Desktop.
iOS media queries - device aspect ratio
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
/*Another useful media feature is device-aspect-ratio.*/ | |
/*Note that the iPhone 5 does not have a 16:9 aspect ratio. It is in fact 40:71.*/ | |
/*iPhone < 5:*/ | |
@media screen and (device-aspect-ratio: 2/3) {} | |
/*iPhone 5:*/ | |
@media screen and (device-aspect-ratio: 40/71) {} | |
/*iPad:*/ | |
@media screen and (device-aspect-ratio: 3/4) {} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment