ENSURING PROPER LAYOUT CONTEXT
I am working with a simple layout for my webpage. It consists of two divs that are both positioned absolutely, with one centered within the other.
<div id="protocol_index_body_wrapper">
<div id="protocol_index_body">
</div>
</div>
This structure is styled with the following CSS:
#protocol_index_body_wrapper {
background: url("/images/stripe.png") repeat scroll 0 0 transparent;
position: absolute;
top: 120px;
left: 0px;
right: 0px;
bottom: 10px;
}
#protocol_index_body {
width: 960px;
margin: 0 auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
The desired outcome is shown in the image provided. This layout works as expected in IE8, Firefox, and Chrome. However, in IE7, the centered div appears flush against the left side instead. Any suggestions on how to address this issue?