I have previous experience using bootstrap to create websites, and this time I am working on a site with a fixed navigation bar. My goal is to position the logo in the middle of the navigation links but also have it appear on top of the links.
Here is an image illustrating what I am trying to achieve:
https://i.sstatic.net/CdyTJ.jpg
The current code I have is as follows:
html, body {
margin: 0;
padding: 0;
background: #fff;
color: #000;
font-size: 14px;
font-family: 'Helvetica', serif;
}
.navbar {
background: none;
border: none;
margin-top: 20px;
}
.container-fluid {
padding-left: 0px;
padding-right: 0px;
margin-left: -40px;
}
.navbar ul li {
display: block;
text-align: center;
float: left;
width: 20%;
}
.fourth-color {
background-color: #ffecec;
padding-top: 30px;
padding-bottom: 30px;
}
.third-color {
background-color: #122212;
padding-top: 30px;
padding-bottom: 30px;
}
.second-color {
background-color: #aaa;
padding-top: 30px;
padding-bottom: 30px;
}
.first-color {
background-color: #f25727;
padding-top: 30px;
padding-bottom: 30px;
}
<!-- Start of Nav Bar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<ul>
<li class="first-color"><a href="#">First</a></li>
<li class="second-color"><a href="#">Second</a></li>
<li><a href="#">Logo</a></li>
<li class="third-color"><a href="#">Third</a></li>
<li class="fourth-color"><a href="#">Fourth</a></li>
</ul>
</div>
</nav>
When attempting to add an image link, it doesn't align properly and disrupts the entire navigation bar layout. Any assistance would be greatly appreciated!