Yeah, but check these out...
Div Container here:
Code:
<div id="main">Content for id "main" Goes Here</div>
CSS for Div Container:
Code:
#main {
width:960px;
height:100%;
border-right: 10px solid #561414;
border-left: 10px solid #561414;
background: #FFFFFF;
margin: 0px auto;
}
"margin: 0px auto;" is used to center the Div Container in the Body of the HTML page.
And the Body in the CSS looks like this:
Code:
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background: #FFFFFF url(../images/bg_tile.gif);
font-family: Verdana;
text-decoration: none;
font-size: 16px;
text-align: center; /* For IE */
}
This should work. But when I test this in IE, it only shows a 10px container at the top of the window.
What gives?
Bookmarks