Skip to main content
Feedback

Navigation CSS

warning

The content on this page is outdated and will not receive updates. For the most up-to-date functionality, refer to Setting up and managing flows.

This topic provides examples of the main CSS classes/selectors you can use to customize Navigation elements.

Default player CSS

You can use the following main classes/selectors to apply additional CSS styling to navigation elements in a flow running the default player.

Column

Class/SelectorDescription
.flow-navThe class for the entire navbar component.For example, to add more padding to the entire navigation element:.flow-nav {padding:25px}
.flow.nav-horizontalThe class for a horizontal (top) navbar component.For example, to add more padding to a top navbar component..flow.nav-horizontal {padding:25px}
.nav-sidebar-labelThe class for the main navigation label.For example, to change the font color of the navigation label:.nav-sidebar-label {color:red}
.nav-toggle-menuThe class for the navbar hamburger menu when viewed on smaller screens.For example, to add a border around the collapsed hamburger menu:.nav-toggle-menu {border:1px solid black}
.nav-item-listThe class for the individual navigation tab elements.For example, to change the font styling for the navigation menu items:.mw-bs .navbar-nav > li > a {font-size:16px;color:red}
.nav-item activeThe class for the active (selected) individual navigation tab element.

Default legacy player CSS

You can use the following classes/selectors to apply additional CSS styling to navigation elements in a flow running the default legacy player. The navigation element and styling framework is based on the Bootstrap Navbar component. See Bootstrap navbar component.

See Historical navigation to learn more about using historical navigation.

Column

Class/SelectorDescription
.mw-bs .navbarThe Bootstrap class for the entire navbar component.For example, to add more padding to the entire navigation element:.mw-bs .navbar {padding:25px}
.mw-bs .navbar-defaultSee Containers CSS.
.mw-bs .navThe Bootstrap class for the main navigation tab elements.For example, to add more padding to the right-hand navigation tab elements:.mw-bs .nav {padding:25px}
.mw-bs .navbar-headerThe Bootstrap class for the navbar branding element.For example, if you have added a logo to the navigation bar, to add a border round the logo:.mw-bs .navbar-header {border:1px solid black}
.mw-bs .navbar-toggleThe Bootstrap class for the navbar hamburger menu when viewed on smaller screens.For example, to add a border around the collapsed hamburger menu:.mw-bs .navbar-toggle {border:1px solid black}
.mw-bs .navbar-nav > li > aThe Bootstrap class for the individual navigation tab elements.For example, to change the font styling for the navigation menu items:.mw-bs .navbar-nav > li > a {font-size:16px;color:red}
.mw-bs .navbar-brandThe Bootstrap class used to add a logo to the navigation bar.For example, to add a logo image to the top-left of the navigation element:.mw-bs .navbar-brand { background: url(yourimageurl/company_logo.png); background-position: left center; background-repeat: no-repeat; font-size: 1px; font-weight: 500; line-height: 20px; width: 243px; height: 73px; margin: 10px 15px 10px 15px !important; padding: 0px 0px 0px 36px !important; font-weight: bold; background-size: contain; }
.mw-bs .navbar-default .navbar-nav>:nth-child(n)The Bootstrap classes used to style individual specific items in the navigation bar.For example, to add an image to the top-left of the first menu item in a vertical navigation element:.mw-bs .navbar-default .navbar-nav>:nth-child(1) { background: url(https://url/image.png); background-size: 40px; font-size: 20px; background-position: left center; background-repeat: no-repeat; width: 100%; text-align: left; padding-left: 45px;}For example, to add an image to the top-left of the first menu item in a horizontal navigation element:.mw-bs .navbar-default .navbar-nav>:nth-child(1) { background: url("https://url/image.png""); background-size: 40px; background-repeat: no-repeat; background-position: left center; color: black; float: left; text-align: right; padding-left: 40px;}

Default legacy player CSS: Historical navigation

You can customize historical navigation using CSS, such as changing the font, colors, background and other aspects of the breadcrumb trail.

For example, you can customize historical navigation to display as a series of grey block elements in a flow running the default legacy player:

CSS customization example

.mw-bs .historical-navigation li {padding:8px 12px 8px 12px;color:#ff3300;background:#eeeeee;}
.mw-bs .historical-navigation li button {color:#444444;}
.mw-bs .historical-navigation li:not(:last-child):after {color:#444444;}

The following classes/selectors allow you to apply additional CSS styling to historical navigation in a flow running the default legacy player.

Column

Class/SelectorDescription
.mw-bs .historical-navigationThe main class applied to the entire breadcrumb trail.For example, to set the background of the breadcrumb trail:.mw-bs .historical-navigation {background:#eeeeee}
.mw-bs .historical-navigation ulThe main list class applied to the breadcrumb trail <ul>.For example, to set the background of the whole breadcrumb trail item group:.mw-bs .historical-navigation li {background:#cccccc;}
.mw-bs .historical-navigation liThe main list class applied to each breadcrumb trail link item <li>.For example, to set the background of each link item in the breadcrumb trail:.mw-bs .historical-navigation li {background:#cccccc;}
.mw-bs .historical-navigation li buttonThe main class applied to the text acting as a button/link within each breadcrumb trail link item.For example, to set the background of each link 'button' in the breadcrumb trail:.mw-bs .historical-navigation li button {background:#cccccc;}
.mw-bs .historical-navigation li:not(:last-child):afterTargets the breadcrumb links divider, allowing you to display a different character or content.For example, to display a backslash between the links:.mw-bs .historical-navigation li:not(:last-child):after { content: '/';}To display an image between the links:.mw-bs .historical-navigation li:not(:last-child):after { content: url(https://yoururl1/divider.png);}
.mw-bs .historical-navigation li .historical-navigation-expandTargets the breadcrumb links ellipsis that is displayed once a user has proceeded beyond five steps in the flow.For example, to set the color of the ellipsis:.mw-bs .historical-navigation li .historical-navigation-expand { color:blue;}
On this Page