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
https://forums.phpfreaks.com/topic/228892-disable-zoom/
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
https://forums.phpfreaks.com/topic/228892-disable-zoom/#findComment-1180076
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.