My current setup uses @media
queries:
HTML:
<head>
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
CSS:
@media screen and (min-width: 769px) {
/* ADD STYLES HERE */
}
@media screen and (min-device-width: 481px) and (max-device-width: 768px) {
/* ADD STYLES HERE */
}
@media only screen and (max-device-width: 480px) {
/* ADD STYLES HERE */
}
While this setup works fine on the iPhone, it doesn't seem to work properly in the browser.
Could it be due to having device
in the meta tag already, or should I use max-width:480px
instead?