is now part of Shuffle™. The new editor includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.
Switch to Shuffle →

Bootstrap class: .nav-fill

<ul class="nav nav-pills nav-fill">
  <li class="nav-item">
    <a class="nav-link active" href="#">Active</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Longer nav link</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Link</a>
  </li>
</ul>

Preview

Tips 💡

Sass source

/* _nav.scss:91 */
.nav-fill {
  .nav-item {
    flex: 1 1 auto;
    text-align: center;
  }
}

Uses variables

Code copied to the clipboard.

Copying failed

/* _nav.scss:91 */

More in Bootstrap Navs