Here are the Media Queries for targeting your iPad in portrait or landscape mode:-
/* iPad in Landscape */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { /* CSS Styles */ } /* iPad in Portrait */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { /* CSS Styles */ }
To target the Old iPad 1/2 iPad Mini
@media screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 1)