Hey all..
I am struggling with a CSS issue. I have a simple front page that consists of 4 divs. 3 of which are visible. The other is an overlay.
<body>
<form id="form1" runat="server">
<div id="header">Header</div>
<div id="overlay" visible="false"></div>
<div id="container">Container</div>
<div id="menu">
<input type="text" />
<input type="button" class="button" value="Go" onclick="ajax.getData()" />
</div>
</form>
I want the the "menu" to be positioned to the left of the header. I have been able to accomplish this by setting this div's position absolute:
#menu
{
position: absolute;
top: 20px;
left: 10px;
width: 150px;
height: 300px;
padding: 5px;
border: solid 1px #666;
background: #ffffff;
-moz-border-radius: 5px;
}
However, when the screen is resized (smaller) this div remains locked in position but the other divs resize (desired) but the menu div does not. Changing the positioning to be 'relative' causes the div to fall beneath the 'container' div. Can someone tell me what's wrong with my CSS?
The results are the same in IE and FF.
Thanks!
-Nick