Forum Moderators: not2easy
The content of the central (inline) dive won't overlap the left margin box when the browser is shrunk, but the margin of the right menu box overlaps the content of the central div, is there any way I can stop the content areas overlapping?
a bit more info is required...
I'm presuming not an "inline div", but a block level div instead so it's got left and right margins set (are these margins pixels or %)..
then your left and right menu divs are positioned how? absolutely? and are their widths in pixels (designed to fit inside the main div's margins)
Any AP divs shouldn't have margins on them they should be sized and positioned to fit inside the space created for them.
A stripped code snippet will give more clue..
I've got a test running from what I can visualise but I can't recreate the "overlap" you mention
Suzy
#leftcontent {
background-color:#ffffff;
position: absolute;
left:0px;
top:96px;
width:142px;
}
#rightcontent {
position: absolute;
right:0px;
top:96px;
width:142px;
}
#centercontent {
background-color:#ffffff;
color: #000000;
margin-left: 160px;
margin-right:160px;
margin-top: 8px;
voice-family: "\"}\"";
voice-family: inherit;
margin-left: 160px;
margin-right:160px;
}
The left and right divs are absolutely positioned to fit in the margins of the centercontent div, however if the page gets shrunk the rightcontent div overlaps the centercontent div.
However is there something in your center column (i.e. an image or a table or a fixed width div?) that would force the center to not to shrink below a certain width? so forcing it to reduce the right margin and under the right column..
It's the only thing I can think of..
Suzy
1. As SuzyUK said if you have a fixed size image in the centercolumn the rightcolumn will eventually override it as the page shrinks (right and left being absolute). If it is feasible to size image by % then it will shrink evenly with the rest of the centercolumn.
2. At some point the shrinking width/expanding height of the centercolumn is one word wide. At that point centercolumn can no longer shrink and rightcolumn will overwrite it.
3. If none of the above is the problem more detail would be helpful.
Adam