Have you heard of the bootstrap-4 class called nav-pill
? It's meant to make links have equal width and occupy all horizontal space.
To achieve equal-width elements, simply use
.nav-justified
, as suggested. This will ensure that nav links take up all horizontal space.
You can find more about this feature here: Bootstrap's explanation on Fill and justify.
The code snippet they provide is as follows:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="nav nav-pills nav-justified">
<a class="nav-link active" href="#">Active</a>
<a class="nav-link" href="#">Longer nav link</a>
<a class="nav-link" href="#">Link</a>
<a class="nav-link disabled" href="#">Disabled</a>
</nav>
However, it seems that this implementation is not working properly...
Could it be possible that something has been missed or misunderstood?
Edit:
Allow me to rephrase my inquiry:
I grasp the concept behind .nav-fill
. However, I seek a clearer understanding of what .nav-justified
entails and why it doesn't seem to function as intended.