I have a simple query which I cannot get my head around. I have an image put into my 'nav' div and it contains a red & white box. I have created a 'content' div after the 'nav' div where my content will go but it does not match the length of the image in the previous div. please see this link for a clearer picture.
<body>
<div id="wrap">
<div id="header">
<!-- LOGO GOES HERE -->
</div>
<div id="nav">
<img src="images/nav.png" width="1076" height="99" />
</div>
<div id="content">
HOW DO I ALIGN THIS DIV TO MATCH THE LENGTH OF THE WHITE BOX ABOVE?
</div>
</div><!--End of wrap -->
body {
background-color:#d3d1d1;
margin:0 auto;
}
#wrap {
width:1076px;
margin:auto;
}
#content {
background-color:white;
}
.nav#navand#contentin a newdiv#mainand give all alignment properties to it.