Hello, I have a page with MVC that includes CSS for iPad and mobile devices.
The media query for iPad (@media only screen and (min-device-width: 768px) and (max-device-width: 1024px)) works perfectly, but I am struggling to get the media query for mobile to work. I have tried the following:
@media only screen and (min-device-width : 320px) and (max-device-width : 480px)
and also this:
@media only screen and (min-device-width : 320px) and (max-device-width : 767px)
and finally this:
@media only screen and (max-device-width : 767px)
This is what my meta tag looks like:
<meta name="viewport" content="width=device-width,initial-scale=1" />
I tested it on HTC ONE and iPhone 4.