Is there a way to keep the logo in my navbar from pushing down and expanding the background height? I want the logo to sit on top and overlap without affecting the layout. If positioning the logo absolutely could solve the issue, how can I make it happen only within the container itself?
I am currently using a li tag with an img tag inside for the logo in my Bootstrap 4 navbar. I prefer not to use any hacky workarounds. Here is a link to see what I'm referring to: Navbar with logo
<nav class="navbar fixed-top navbar-expand-md justify-content-between">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#collapsingNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse justify-content-center" id="collapsingNavbar">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Link <span class="sr-only">Home</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" data-toggle="collapse">Link</a>
</li>
<li class="nav-item">
<img src="img/logo-placeholder.png" id="logo"></img>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">Link <span class="sr-only">Home</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" data-toggle="collapse">Link</a>
</li>
</ul>
</div>
</nav>