Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can add an html meta tag that would solve the mobile issues you're describing, without CSS.

    <meta name="viewport" content="width=device-width, initial-scale=1">


If you set initial-scale=1, isn't width=device-width redundant?


it's probably there cause some early implementation somewhere tried to be "smart" if you weren't explicit.

too lazy to give you definitive answer, but:

[1] https://www.w3.org/TR/css-device-adapt-1/

[2] https://benfrain.com/understanding-the-viewport-meta-tag-and...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: