I have a problem with my page.
Whenever I minimize the window the positioning of all the elements goes off and things get distorted.
Asked
Active
Viewed 2.9k times
6

putvande
- 15,068
- 3
- 34
- 50

rajprashanth r
- 79
- 1
- 1
- 2
-
Wow, that's really strange. What browser is this? – BoltClock Jan 29 '11 at 12:38
-
3Please show a live example or some code. – Pekka Jan 29 '11 at 12:38
-
Its probably because you have used a mixture of pixels and percentages. Try making it one or the other – Dec 21 '13 at 18:17
1 Answers
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;
}

Arseny
- 5,159
- 4
- 21
- 24
-
How is minimizing the window going to affect rendering whether `min-width` is there or not? – BoltClock Jan 29 '11 at 12:50
-
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 and then its solved. when width of the minimized window is less than min-width set by me it gives a horizontal scroll – rajprashanth r Jan 29 '11 at 12:54
-
hey guys one problem this doesnt work for IE . need help!!!!!!!!!!! – rajprashanth r Jan 29 '11 at 15:04
-