Scaling a website to 100% of the width / height of the visible area

How to make the content of a web page fully scaled regardless of the width / height of the visible part of the device?

+3
source share
2 answers
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />

also works as a meta tag, if you want users to scale the site, just do not use the Minimumscale, maxscale and user-scalable attributes.

+7
source

In iphone

webview.scalesPageToFit = YES;

All the best.

+1
source

Source: https://habr.com/ru/post/1769135/


All Articles