Hi,
First post, but lurked for a while!
Probably something really simple, but my footer doesn't seem to want to align with its containing div. Its slightly off to the right.
I don;t really understand why - the background image is exactly 850px, as is the div.
Just to let you know, i've put borders around the other elements, just to make the design easier, but not the footer.
Here is the image.

Its really getting on my nerves!!!!!
Thanks,
Jeff
First post, but lurked for a while!
Probably something really simple, but my footer doesn't seem to want to align with its containing div. Its slightly off to the right.
I don;t really understand why - the background image is exactly 850px, as is the div.
Just to let you know, i've put borders around the other elements, just to make the design easier, but not the footer.
Code:
@charset "utf-8";
/* CSS Document */
#wrapper {
width:850px;
height:650px;
margin:0 auto; /* this centers the page */
padding:0;
border-style:solid;
border-width:1px;
border-bottom-style:none;
border-top-style:none;
}
#header {
background:url(navbar.png);
background-position: left bottom;
background-repeat:no-repeat;
height:200px;
border-style:solid;
border-width:1px;
}
#logo {
background:url(logo.png);
width:191px;
height:82px;
margin:55px 34px;
padding:0px;
border-style:solid;
border-width:1px;
}
#contentnav {
width:150px;
height:400px;
float:left;
margin:16px;
border-style:solid;
border-width:1px;
}
#contentmain {
background:url(content.png);
background-repeat:no-repeat;
width:600px;
height:400px;
float:right;
margin:16px;
border-style:solid;
border-width:1px;
}
#footer {
clear:both;
background:url(footer.png);
background-repeat:no-repeat;
background-position:left bottom;
width:850px;
height:200px;
margin:0px;
border-style:solid;
border-width:1px;
}
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="hisstylesheet.css" rel="stylesheet" type="text/css" />
<title>Untitled Document</title>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
</div><!-- end #logo -->
</div><!-- end #header -->
<div id="contentnav">
</div><!-- end #contentnav -->
<div id="contentmain">
</div><!-- end #contentmain -->
<div id="footer">
</div><!-- end #footer -->
</div><!-- end #wrapper -->
</body>
</html>

Its really getting on my nerves!!!!!
Thanks,
Jeff

Comment