pxI created a style defenition like this:
#container {
width: 900px;
margin: 0 auto;
background-image:url(images/back.JPG);
}
#header {
width: 900px;
height: 200px;
background-image:url(images/logo2.jpg);
border-bottom: 2px solid #000;
}
#leftnav {
float:left;
width: 150px;
height: 500px;
}
#rightnav {
float:right;
width: 150px;
height: 500px;
}
#body {
margin-left: 150px;
width: 600px;
text-align:center;
background-image:url(images/tb.png);
}
#footer {
clear:both;
background-image:url(images/tb.png);
}
Then I created a index file like that used the container around everything, then put the header, then leftnav, then rightnav, then body, then footer.
This works greate on Chrome and firefox, but on IE, the “BODY” container is not where it is supposed to be, it starts under the “leftnav” container. Is there a simple fix for this?
Updated cod from first answer, still same problem.
My index file is a php file.
You don’t have units defined on
#body‘s width. Should bewidth: 600px;Also, remove
margin-left: 150;Try this. It works in IE7 for me. I think you were just missing a doctype.