Using Bootstrap v4.0 for my website, I have created a basic navbar that looks like this
(Check the link to see the codepen).
The issue with this menu is that when you resize the page to observe how the navigation works on md and sm devices, there appears to be a gap between the navbar and the header:
Take a look at this image
Therefore, my question is: How do I eliminate this space?
Here is the HTML code:
<nav class="navbar navbar-expand-lg navbar-custom BKoodakBold">
<a href="" class="navbar-brand"><img id="img1" class="hidden-xs" src="img/letter-logo.png" width="100" height="100"></img><script>rotateAnimation("img1",30);</script><img id="img2" src="img/text-logo.png" width="300" height="100"></img></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsingNavbarMd">
<i class="fa fa-bars fa-lg py-1 text-white"></i>
</button>
<div class="navbar-collapse collapse" id="collapsingNavbarMd">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Shop
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Specials</a>
<a class="dropdown-item" href="#">Lowest Prices</a>
<a class="dropdown-item" href="#">Browse</a>
<a class="dropdown-item" href="#">Build Weapon</a>
<a class="dropdown-item" href="#">Clothing</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Trade</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Help
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Q&A</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Community
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Blog</a>
<a class="dropdown-item" href="#">Catalog</a>
<a class="dropdown-item" href="#">About</a>
<a class="dropdown-item" href="#">Price List</a>
<!-- <a class="dropdown-item" href="#">API Documentation</a>
<a class="dropdown-item" href="#">npm package</a> -->
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Finance</a>
</li>
<button class="btn BJadidBold">Login/Signup</button>
</ul>
</div>
</nav>
I've scoured the forum for a solution but haven't found anything useful. Your assistance in solving this would be greatly appreciated.
Thank you in advance :)