You cannot stop the end user from resizing your browser.
However, you can create your site in a fixed height / width element and then center that element on the page using CSS.
Example
#main-container {
width: 300px;
height: 400px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -150px;
margin-top: -200px;
}
I suppose you could increase the width of the browser width using JavaScript and the onresize event, but this will probably annoy your end users.
source
share