Ok, I am at my wits end here, I have tried so many things. Here is all the information you need, I want the horizontal navigation to be in the center. It refuses.
HTML:
<body>
<div class="container">
<div class="top">
<h1>Binjured.com</h1>
<span class="small">Web Design and Development</span>
</div>
<ul id="nav">
<li><a href="Test">Home</a></li>
<li><a href="Test1">About</a></li>
<li><a href="Test1">Services</a></li>
</ul>
</div>
</body>
CSS used (validated):
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: center;
}
.container {
text-align: left;
margin: 0px auto;
width: 800px;
}
#nav {
margin:0px auto;
width:800px;
text-align:center;
}
#nav ul, #nav li
{
margin: 0px 1px;
padding: 0px;
display: inline;
list-style-type: none;
float:left;
}
#nav a:link, #nav a:visited
{
display:block;
height: 25px;
width: 80px;
line-height: 30px;
border-bottom: 5px #000;
border-top: 1px #A9A9A9;
border-left: 1px #CCCCCC;
border-right: 1px #000000;
border-style: solid;
font-weight: bold;
text-decoration: none;
color: #C10007;
}
#nav a:hover, #nav a:link#current
{
border-bottom: 5px solid #C10007;
background: transparent;
color: #000;
}
WEBPAGE MAKING ME WANT TO KILL EVERYONE:
As you can see, I have the "container" for the whole thing yet the navigation refuses to be centered properly. I have been screwing with this for hours on end, changing things, rearranging... PLEASE HELP!!
HTML:
<body>
<div class="container">
<div class="top">
<h1>Binjured.com</h1>
<span class="small">Web Design and Development</span>
</div>
<ul id="nav">
<li><a href="Test">Home</a></li>
<li><a href="Test1">About</a></li>
<li><a href="Test1">Services</a></li>
</ul>
</div>
</body>
CSS used (validated):
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: center;
}
.container {
text-align: left;
margin: 0px auto;
width: 800px;
}
#nav {
margin:0px auto;
width:800px;
text-align:center;
}
#nav ul, #nav li
{
margin: 0px 1px;
padding: 0px;
display: inline;
list-style-type: none;
float:left;
}
#nav a:link, #nav a:visited
{
display:block;
height: 25px;
width: 80px;
line-height: 30px;
border-bottom: 5px #000;
border-top: 1px #A9A9A9;
border-left: 1px #CCCCCC;
border-right: 1px #000000;
border-style: solid;
font-weight: bold;
text-decoration: none;
color: #C10007;
}
#nav a:hover, #nav a:link#current
{
border-bottom: 5px solid #C10007;
background: transparent;
color: #000;
}
WEBPAGE MAKING ME WANT TO KILL EVERYONE:
As you can see, I have the "container" for the whole thing yet the navigation refuses to be centered properly. I have been screwing with this for hours on end, changing things, rearranging... PLEASE HELP!!