The logo in my navigator is aligned to the left, and the links inside are aligned to the right, but the links sit vertically inside the navigation panel. No matter what I do, I cannot reach the center. Thank you in advance for any help. Here is my code:
HTML
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper">
<ul>
<a href = "index.html" class = "nav-logo"><img src="images/mo's_logo.png" title = "Go to Mo Gyros Home" alt = "Mo Gyros logo"></a>
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href = "#">Specials</a></li>
<li><a href = "#">Events</a></li>
<li><a href = "#">Contact Us</a></li>
</ul>
</div>
</nav>
</div>
CSS
#nav-wrapper {
}
nav {
width: 100%;
height: 38px;
padding: 5px;
position: fixed;
background-color: #5c5453;
}
.navbar-fixed {
padding: 0;
}
.nav-logo {
float: left;
padding-left: 160px;
}
nav li {
display: inline;
list-style-type: none;
padding-right: 50px;
}
a {
color: #8CBAD9;
text-decoration: none;
}
a:hover {
color: white;
text-decoration: underline;
}
ul {
text-align: right;
}
source
share