Forum Moderators: not2easy
<DIV id="header">
<IMG src="images/logo.png">
</DIV><DIV id="menu">
<IMG SRC="images/menu_01.png">
<IMG SRC="images/menu_02.png">
<IMG SRC="images/menu_03.png">
<IMG SRC="images/menu_04.png">
</DIV>
<DIV id="main">
<IMG id="placeholder" src="images/placeholder.jpg">
</DIV>
<DIV id="footer">blah blah blah</DIV>
Basically the center image (placeholder). has this css:
#placeholder {
position: relative;
height: 310px;
width: 615px;
top: 50%;
margin-top: -155px;
margin-left: auto;
margin-right: auto;
}
#main {
height: 70%;
margin: 0px;
padding: 0px;
}
The #header is 110px high and #menu 30px. At the moment when I resize the browser the placeholder image gets pushed over the menu buttons, covering them. Not good for small browsers.
How can i solve this?
if your header remains 110px high each time, then it will overlap.
Is there a way to force it to scroll rather than overlap? I mean that rather than one image overlapping another a scroll grows instead?
but if you 'position:relative' everything, and do away with your minus margins then it shouldn't overlap. if it does, then just put a 'clear:both' in the CSS on the one that is overlapping. that will make it drop below the one behind it. (but only if you remove the minus margins!)