I'm reposting my code because I have been playing with it so much. I think I screwed it up now.
Code:
@charset "UTF-8";
/* CSS Document */
body {
margin:auto;
}
#banner{
alignment-adjust:central;
}
#nav li {
float:left;
}
#nav {
width: 100%;
float: left;
margin: 0 0 3em 0;
padding: 0;
list-style: none;
background-color: #BBA359;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
}
#nav li a {
display: block;
padding: 8px 15px;
text-decoration: none;
font-weight: bold;
color: #000;
border-right: 1px solid #ccc;
}
#nav li a:hover {
color: #BBA359;
background-color: #000; }
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div id="banner" align="center">
<img src="images/bannerjay.jpg" alt="">
</div>
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Designes</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</body>
</html>