0

Hi everyone, i make an html page,i want to prevent the page from zoom out after certain zooming out. my html code is below

<style type="text/css">
.main-container {
background-image: url(images/background.jpg);
background-repeat: no-repeat;
position:relative;
margin:0 auto;
height: 1508px;
width:  1300px;
}
</style>
//main container
<div id='container'>
my contents will be here
</div>
user696734
  • 63
  • 1
  • 13

1 Answers1

0

Access to the browser's zoom control state is not scriptable (universally).

See: How to detect page zoom level in all modern browsers?

Community
  • 1
  • 1
Diodeus - James MacFarlane
  • 112,730
  • 33
  • 157
  • 176