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.

putvande
  • 15,068
  • 3
  • 34
  • 50
rajprashanth r
  • 79
  • 1
  • 1
  • 2

1 Answers1

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
  • http://css.flepstudio.org/en/css-tips/min-width-ie6.html – Arseny Jan 29 '11 at 18:32