How to limit the minimum screen size?

2

I'm working with Bootstrap.

What I want is for the user to be able to reduce the screen to 700px and from the moment it has 700px the screen does not decrease any more.

It can be via Jquery, JavaScript, in JAVA itself or just by CSS, any way it helps.

Thank you.

    
asked by anonymous 21.08.2015 / 19:09

1 answer

1

If you want to limit the size of the browser window, you can not. You could only do this if you opened the window with window.open() , doing something like this:

window.addEventListener('resize', function() {
    if(window.outerWidth < 700) {
        window.resizeTo(700, window.outerHeight);
    }
}, true);

Now, if you want to limit the body size of the page, do so with CSS:

body {
  min-width: 700px;
}
    
22.08.2015 / 21:13