I'm stuck on nesting a "navbar" in a Bootstrap row. The issue I'm facing is how to get the links to expand across the entire column.
https://i.sstatic.net/9QbSN.png
The code for this problem looks like:
<div class="col-6 p-3">
<nav class="navbar navbar-expand-lg" style="justify-content: space-between;">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse">
<ul class="navbar-nav w-100">
<li class="nav-item">
<a class="nav-link text-black" href="#">Link1</a>
</li>
<li class="nav-item">
<a class="nav-link text-black" href="#">Link2</a>
</li>
<li class="nav-item">
<a class="nav-link text-black" href="#">Link3</a>
</li>
<li class="nav-item">
<a class="nav-link text-black" href="#">Link4</a>
</li>
<li class="nav-item">
<a class="nav-link text-black" href="#">Link5</a>
</li>
</ul>
</div>
</nav>
</div>
(w-100 class doesn't work)
Unfortunately, I couldn't find an example like this on the Bootstrap page [https://getbootstrap.com/docs/4.2/components/navbar/]. There's an example with the class "nav-fill" on "navs" [https://getbootstrap.com/docs/4.2/components/navs/#fill-and-justify], but it also didn't work.
Is there a way to stretch the nav-links evenly across the space?