so my issue is that my navbar wont display in the center of the screen (horizontally) and I dont understand why, this is something I have regular issues with so if you could help it would be greatly appreciated. Heres a link to the code
body {
width: 100%;
margin: 0;
padding: 0;
}
/*******************
HEADER
*******************/
#logo {
display: block;
margin: 0 auto;
height: 14em;
}
#name {
text-align: center;
}
/*******************
NAV BAR
*******************/
nav ul {
list-style-type: none;
overflow: hidden;
text-align: center;
}
nav li {
float: left;
display: inline-block;
}
nav li a {
display: block;
text-align: center;
text-decoration: none;
}
<body>
<header>
<img id="logo" src="img/under-construction.png" />
<h1 id="name">Team Kangoo Anywhere</h1>
<nav>
<ul>
<li><a href="home.html"></a>Home</li>
<li><a href="about-us.html"></a>About Us</li>
<li><a href="about-the-rally.html"></a>About The Rally</li>
<li><a href="our-car.html"></a>Our Car</li>
<li><a href="charities.html"></a>Charities</li>
<li><a href="sponsors.html"></a>Sponsors</li>
<li><a href="contact-us.html"></a>Contact Us</li>
</ul>
</nav>
</header>