Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have a mobile website but it loads zoomed out. How can I fix this?

I have a mobile website but it loads zoomed out. How can I fix this.

like image 998
Wesley James Holroyd Newman Avatar asked Apr 16 '15 16:04

Wesley James Holroyd Newman


People also ask

How do I Unzoom a website?

By default, Chrome sets the zoom level to 100%. To manually adjust the settings, use the Ctrl key and “+” or “-” combos to increase or decrease the page magnification. If you are using a mouse, you can hold down the keyboard Ctrl key and use the mouse wheel to zoom in or out.

How do I stop my phone from zooming in on websites?

Giving a meta tag attribute "user-scalable=no" will restrict the user from zooming elsewhere. Prevent zooming all together by adding this meta tag to your head tag. This tells the mobile browser to use the same width scale and will not allow the user to zoom in at all, hence also disables that annoying behavior.

How do I change the page zoom on my screen size?

Select "Zoom," then click "Zoom In" to enlarge the website or "Zoom Out" to reduce its size. Each time "Zoom In" or "Zoom Out" is clicked, it will increase or reduce the magnification an additional level. Continue adjusting the "Zoom" option until the page is displayed to your liking.


2 Answers

You should insert the Viewport meta tag.

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

This means that the browser will (probably) render the width of the page at the width of its own screen. So if that screen is 320px wide, the browser window will be 320px wide, rather than way zoomed out and showing 960px (or whatever that device does by default, in lieu of a responsive meta tag).

Reference: Css-Tricks - Responsive Meta Tag - MDN - Using the viewport meta tag to control layout on mobile browsers

like image 128
emmanuel Avatar answered Oct 03 '22 18:10

emmanuel


You might need to set the viewport

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

http://davidbcalhoun.com/2010/viewport-metatag/

like image 31
C. Marquez Avatar answered Oct 03 '22 17:10

C. Marquez