Hey everyone. So for some reason I cannot get my margin property to align my #footer within the #container. I want there to be a 10px space between the middle divs and the footer image. I've got 10px of padding around the #container, and would like to keep the same theme spacing the footer image down 10px, as you can see in the attached image in which is displayed in browser.
Could I get some help please! I've been at this for awhile now, double checking heights and what not but cannot seem to get it to work
thanks
CSS
Could I get some help please! I've been at this for awhile now, double checking heights and what not but cannot seem to get it to work
thanks
CSS
Code:
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
overflow:auto;
white-space:no-wrap;
}
#wrapper {
position:relative;
margin-left:auto;
margin-right:auto;
width:984px;
height:;
}
#container {
position:relative;
width:960px;
height:500px;
padding:10px;
text-align:center;
border-style:solid;
border-width:2px;
border-color:#0e7bc0;
}
#header {
position:relative;
height:110px;
width:984px;
}
#footer {
position:relative;
width:960px;
height:90px;
margin-top:10px;
}
#header_logo {
position:relative;
height:110px;
width:320px;
float:left;
}
#header_nav {
position:relative;
height:14px;
width:660px;
float:left;
text-align:right;
vertical-align:bottom;
}
#container_nav {
position:relative;
width:150px;
height:365px;
padding-top:35px;
background-color:#0e7bc0;
padding-left:10px;
text-align:left;
float:left;
}
#container_content_word {
position:relative;
height:365px;
width:390px;
padding-top:35px;
text-align:left;
padding-left:10px;
float:left;
}
#container_content_img {
position:relative;
width:400px;
height:400px;
float:left;
}
HTML:
<body>
<div id="wrapper">
<div id="header">
<div id="header_logo">logo image placer</div>
<div id="header_nav">this is nav
</div>
</div>
<div id="container">
<div id="container_nav"></div>
<div id="container_content_word">
<p>this is where description of visiting page goes</p>
</div>
<div id="container_content_img">pictureplacer</div>
<div id="footer"><img src="Media/images/website_images/footer%20copy.gif"></div>
</div>
</div>
</body>

Last edited by a moderator: