Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

website layout changing on browser window resizing

Tags:

html

css

layout

web

For a website I'm making, I'm using percentages for the divs and so when I resize the browser window, the website layout gets messed up. How should I keep using percentages and make the layout stay the way it is upon browser resizing?

like image 549
niravb Avatar asked Oct 18 '11 20:10

niravb


People also ask

How do I stop a browser window from resizing after a specific size?

Prevent Browser Resize Css CSS can be used to prevent browser resizing. By using the max-width property, you can set a maximum width for the browser window. If the browser window is resized to be smaller than the max-width, the browser will automatically adjust the size of the elements on the page.

How do you scale a browser window?

* 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.


1 Answers

when you set width in %, try setting min-width and max-width in px

Check this

like image 123
Priya Avatar answered Nov 15 '22 03:11

Priya