I am trying to set media queries for the iphone 5 and different ones for the iphone 6. However for some reason it looks like my queries are overlaping:
Iphone 6
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px)
and (orientation : portrait) { /* STYLES GO HERE */ }
Iphone 5
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : portrait) { /* STYLES GO HERE */ }
For some reason, whatever I declare on the media query for the iPhone 5 is also showing on the iPhone 6. Do the queries overlap? I thought that both conditions had to be met.
I am using the latest iphones simulators from xcode.