Div is getting pushed at the bottom when resizing winodw
Posted on 2007-03-30
I have a menu on the left,
then I placed a content next to this menu (#content div) with a left margin to put it next to it.
When the window is maximized there is no problem,
but when u resize the window in smaller window,
the content is pushed at the bottom,
Try my sample code :
<form method="post" action="myAction.php"">
<select size="5" name="collection" style="width: 500px" id="idCollectionSelect">
<option value="test 1">Test 1
<option value="test 2">Test 2
<option value="test 3">Test 3
<input value="Test" type="submit"/>
So this is not very ergonomic ....
Related to the question, why can't I see the red background color of #container ?
(TName told me a div parent doesn't fit its children divs if they are all floated,
but in my case the #content div isn't floated)
Thank u for any help .