Attempting to create an additional menu on top of the right menu using Bootstrap 4.6
My approach is to have:
2 navbar-nav
elements with classes w-100
and float-right
, so they would be 100% width and floating to the right.
However, this is not working as expected.
The red box represents my current progress, while the green box indicates my desired outcome.
https://i.sstatic.net/OdI3k.png
Here's what I've tried so far:
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#"><img height="50" src="https://dummyimage.com/150x75/000/fff&text=LOGO" alt=""></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav w-100 float-right">
<li class="nav-item ">
<a class="nav-link" href="#">FACEBOOK ICON</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">TWITTER ICON</a>
</li>
</ul>
<ul class="navbar-nav w-100 float-right">
<li class="nav-item active ">
<a class="nav-link" href="#">HOME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">DOCUMENTATION</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">EXAMPLES</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">THEME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">EXPO</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">BLOG</a>
</li>
</ul>
</div>
</nav>
Appreciate any assistance!