The base .nav component is built with flexbox and provide a strong foundation for building all types of navigation components.
.nav
Use Class .wrap-border with your <nav> tag to wrap your nav with a border
.wrap-border
<nav>
Use Class .justify-content-center with your <nav> tag to align your nav to center
.justify-content-center
Use Class .justify-content-end with your <nav> tag to align your nav to end
.justify-content-end
Roll your own navigation style by extending the base .nav component. All Bootstrap’s nav components are built on top of this by specifying additional styles.
To wrap with border, use .wrap-border class.
To wrap with square border, use .square-border class with .wrap-border class.
.square-border
To add divider, use .dropdown-divider class to <li>
.dropdown-divider
<li>