Disclaimer: ** Warning for Beginners **
I'm facing challenges with my media queries for iPhone (in portrait orientation).
These are my current queries:
For larger monitors
@media only screen and (min-width: 1024px) and (min-height: 861px)
For smaller monitors
@media only screen and (min-width:1024px) and (max-height:860px)
For iPads and smaller windows
@media only screen and (min-width:760px) and (max-width:1023px), screen and (min-device-width: 768px) and (max-device-width: 1024px)
Specifically for iPhones (from 3 onwards)
@media screen and (max-width:759px) and (orientation: portrait), screen and (max-device-width: 767px) and (orientation: portrait)
My iPhone (in landscape orientation) is triggering the iPad and small window query... any advice?
I aim for the iPhone in landscape orientation to use the "iPad" CSS, while in portrait mode it should use the iPhone-specific CSS.
Additionally - when I resize my browser window on my Mac, it displays correctly, but the issue arises with the iPhone - I've tested on an iPhone 5 and a 3S.