Jump to content

Disable Zoom


jamesjmann

Recommended Posts

Is it possible to disable the zoom in a user's browser? Cuz I just designed a template in Photoshop and all of my divs are sized using pixels rather than percents and when I zoom in on it the divs get all messed up and start stacking vertically, so I was wondering if its possible to just disable zoom when the user visits my page.

Link to comment
Share on other sites

Nope. And you shouldn't even if you could - it's bad form to take options out of the users' hands.

 

Anyways, you have nothing to worry about. Users who change the zoom level (myself included) are used to the design on some sites breaking when zooming in.

Link to comment
Share on other sites

If your site breaks when zooming, it might break when the window size is small. Try to resize the browser window and see if the design holds up.

 

If you want pixel perfect design, you would need to set the widht and height of each div and set the overflow property to either hidden or auto (auto will add scroll bars if there is too much content).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.