Prevent zoom cross-browser

By February 27, 2017 No Comments
663 views
0

for one of my website i want to stop or prevent zoom of browser window. I know it is not good, but my application need it i want to stop/disable zoom in browser by Ctrl+ or Ctrl- or Using Ctrl Key + Mouse wheel Up or down

I have tried:

  • with CSS: zoom: reset; It works for Chrome but it doesn’t work at all on Firefox.
  • in various questions/answers, I also found

<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no”>

 

Add a Comment
0

Hi karan,

You can disable browser zoom in and zoom out using this code. this works for me using keybaord CTRL+ and CTRL- as well CTRL+mouse wheel.

You can check the solution here.

 

Add a Comment
Write your answer.

About Karan Gupta

I started my blogging journey 2 years back and now i am a successful problogger. Read my blogging post and other money making tips this site.