Skip to content

Instantly share code, notes, and snippets.

@aNd1coder
Created June 18, 2016 17:02
Show Gist options
  • Save aNd1coder/1bb8480a20f744b68bec8f5d3999542e to your computer and use it in GitHub Desktop.
Save aNd1coder/1bb8480a20f744b68bec8f5d3999542e to your computer and use it in GitHub Desktop.
iOS aspect ratio
/*================iPhone < 5==================*/
@media screen and (device-aspect-ratio: 2/3) {}
/*================iPhone 5==================*/
@media screen and (device-aspect-ratio: 40/71) {}
/*================iPhone 6==================*/
@media screen and (device-aspect-ratio: 375/667) {}
/*================iPhone 6+==================*/
@media screen and (device-aspect-ratio: 16/9) {}
/*================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