Android ignoring 'viewport' metatag

233 views Asked by At

I've included the 'viewport' metatag in the head of my webpage:

<meta name="viewport" content="width=device-width, user-scalable=no" />

The metatag works perfectly on iOS devices, but Android devices completely ignore it.

What am I doing wrong?

1

There are 1 answers

0
Bernard Clark On

Try to leave out the user-scalable=no argument. I've found Android tends to have trouble with that attribute and ignores the whole viewport tag when it finds something it dislikes.

https://code.google.com/p/android/issues/detail?id=11912