Preserve positioning of HTML page when window minimized [closed]
Asked Answered
P

1

6

I have a problem with my page.
Whenever I minimize the window the positioning of all the elements goes off and things get distorted.

Phrygia answered 29/1, 2011 at 12:37 Comment(3)
Wow, that's really strange. What browser is this?Ridglee
Please show a live example or some code.Arris
Its probably because you have used a mixture of pixels and percentages. Try making it one or the otherFinite
I
4

If the elements go off their position when you make your browser window too small, use the CSS min-width property. It makes the web browser show the scroll bar instead of trying to shrink the web page.

Like this:

body {
    min-width: 700px;
}
Interlineate answered 29/1, 2011 at 12:39 Comment(4)
How is minimizing the window going to affect rendering whether min-width is there or not?Ridglee
i am not an expert. i dono why. but the content in the body of the page got misaligned when i minimized thw window. so i set min-width for the <body> and then its solved. when width of the minimized window is less than min-width set by me it gives a horizontal scrollPhrygia
hey guys one problem this doesnt work for IE . need help!!!!!!!!!!!Phrygia
css.flepstudio.org/en/css-tips/min-width-ie6.htmlInterlineate

© 2022 - 2024 — McMap. All rights reserved.