Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Media Queries for iPad
/* CSS for iPad in Portrait (includes iPad mini, iPad air, etc) */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) { }
/* CSS for iPad in Landscape (includes iPad mini, iPad air, etc) */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) { }
/* Target Landscape and Portrait iPad in oen call */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait), @media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment