Is there a way to manually set the minimum size of a browser window across all browsers?
* Press Alt+Space to bring up the window menu, press S to choose the Size option, use the arrow keys to resize the window, and lastly Enter to confirm. * Click the Maximize button in the top right corner of the window. * Click the title bar and drag the window to the left, top, or right edge of the desktop.
You can not control the size of the window. You can use CSS to set min-width and min-height properties to ensure your page layout stays sane. using 'window. open' I can open a page with a fixed height width.
Although there are posts about similar issues, Chrome limits the browser window size to a large minimum size of a whopping 500 pixels.
There are two ways you can do this: Using a div, iframe, or other element to contain everything on your page and specify the size on it. This won't change the actual size of the browser window. Open a new window (popup) and specify a size on that.
You can try
body { min-width:600px; }
You will get a horizontal scrollbar once the viewport gets less than 600px. This will work in only modern browsers supporting min-width CSS property.
I don't think it is possible to restrict user from resizing, and it shouldn't be!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With