I have two different media queries, for iPhone and browser. But the iPhone don't work. The sequence is first browser and then iPhone in the style sheet. When i check the site on iPhone and inspect its shows the queries from browser, not from iPhone. What to do??
I saw this: iphone-6-and-6-plus-media-queries, But what i want is not there.
Browser:
@media only screen and (max-width: 640px) {
#my_div li a img { height: 51% !important; top: 19% !important;}
}
@media only screen and (max-width: 360px) {
.....
}
@media only screen and (max-width: 320px) {
.....
}
iPhone:
@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
#my_div li a img { height: 31% !important; top: 14% !important;}
}