May 2, 200917 yr hi guys listen got a problem my nav bar wont meet the bottom of my header. image below and heres the css code i have written, can anyone help me and show me im going wrong. body{ background: black; font-family: helvetica, arial, "sans serif"; color: grey; text-align: center; } #container{ width: 900px; margin: 0px auto; } #header{ height: 150px; background: url(photoshop/Bannercopy.jpg) no-repeat; } #content{ float: right; width: 400px; } #nav{ height: 45px; width: 900px; background: url(photoshop/navcopy.jpg) no-repeat; } #nav ul li{ display: inline; }
May 2, 200917 yr Try using a simple reset at the top of your css * { margin:0; padding:0; } Some of your html would help too
May 2, 200917 yr Author Thankyou very much heres my html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <LINK href="htmltemp.css" rel="stylesheet" type="text/css"> </head> <body> <div id="container"> <div id="header"> </div> <div id="nav"> <ul> <li>Home</li> <li>Server</li> <li>Downloads</li> <li>Admin</li> </ul> </div> <div id="content"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> </div> </body> </html>
May 4, 200917 yr My first question is: How big is your header image? is it 150px in height? Are you using transparent PNGs? If so did you leave any space on the image? A link to a site is so much more helpful.
Create an account or sign in to comment