Bootstrap Nav
component with a variety of options to provide uniquely looking Nav component that matches the Keen's design standards.
.nav
component does not include any .active
state. The following examples include the class, mainly to demonstrate that this particular class does not trigger any special styling.
.nav
class to the active and disabled states. Swap modifier classes to switch between each style.
The base .nav
component is built with flexbox and provide a strong foundation for building all types of navigation components. It includes some style overrides (for working with lists), some link padding for larger hit areas, and basic disabled styling.
< ul >
s like above, or roll your own with say a < nav >
element. Because the .nav
uses display: flex
, the nav links behave the same as nav items would, but without the extra markup.
.justify-content-center
.justify-content-end
.nav-tabs
class to generate a tabbed interface. Use them to create tabbable regions with our tab JavaScript plugin.
.flex-column
utility. Need to stack them on some viewports but not others? Use the responsive versions (e.g., .flex-sm-column
).
< ul >
s, too.
.nav
’s contents to extend the full available width one of two modifier classes. To proportionately fill all available space with your .nav-item
s, use .nav-fill
. Notice that all horizontal space is occupied, but not every nav item has the same width.
< nav >
-based navigation, be sure to include .nav-item
on the anchors.
.nav-justified
. All horizontal space will be occupied by nav links, but unlike the .nav-fill
above, every nav item will be the same width.
.nav-fill
example using a < nav >
-based navigation, be sure to include .nav-item
on the anchors.
.nav-pills
instead.