pevoje pevoje -4 years ago 841
CSS Question

Warning: "Viewport argument value "100%" for key "width" was truncated to its numeric prefix."

I have this line in my .html file:

<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />


and I am getting this warning in Chrome:

Viewport argument value "100%" for key "width" was truncated to its numeric prefix.

How to fix it?

Answer Source

Should this not be something like

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />

BTW these:

maximum-scale=1
user-scalable=no

are generally considered as providing a poor user experience.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download