Skip to main content
Feedback

Containers 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 details the main CSS classes/selectors applied to page container elements.

Default player CSS

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

Class/SelectorDescription
.page-headerThe class for the main navigation heading container element.
For example, to change the background of the entire navigation heading container:
.page-header {background-color:blue}
.container-verticalThe main class for a row page container.
For example, to change the padding for all row type containers on a page:
.container-vertical {padding:15px;}
.container-horizontalThe main class for a column page container.
For example, to change the padding for all column type containers on a page:
.container-horizontal {padding:15px;}
.container-inlineThe main class for an inline page container.
For example, to change the padding for all inline type containers on a page:
.container-inline {padding:15px;}
.container-groupThe main class for a tab page container.
For example, to change the padding for all tab type containers on a page:
.container-group {padding:15px;}

Default legacy player CSS

You can use the following classes/selectors to apply additional CSS styling to page containers in a flow running the default legacy player.

A basic flow using the default legacy player runtime and theme uses the following main page container framework:

  • The entire flow is contained in a <DIV> element using the .flow-container CSS class.

  • Nested within this is a <DIV> element using the .mw-bs .main-container CSS class.

  • Nested within this is a <DIV> element using the .mw-bs .main-container-inner CSS class.

  • Nested within this are two <DIV> elements:

    • The top <DIV> element contains the navigation element added to the flow, using the .mw-bs .navbar-default CSS class.

    • The <DIV> element below this contains the main body of the flow, such as the page layout and components, using the .mw-bs .main-scroller CSS class. This is where the containers you add in a page layout are inserted.

Class/SelectorDescription
.flow-containerThe main class for the top-level flow <DIV> element.
For example, to change the background of the entire flow web application, including space outside of the maximum-width limits:
.flow-container {background-color:black;margin:20px}
.mw-bs .main-containerThe main class for the second-level nested flow <DIV> element.
For example, to change the background of the entire flow web application and add margin padding to see the container:
.mw-bs .main-container {background-color:blue;margin:20px}
.mw-bs .main-container-innerThe main class for the third-level nested flow <DIV> element.
For example, to change the inner background of the flow web application:
.mw-bs .main-container-inner {background-color:red;margin:20px}
.mw-bs .navbar-defaultThe main class for the fourth-level nested flow <DIV> navigation element.
For example, to change the background of the entire navigation container:
.mw-bs .navbar-default {background-color:blue}
.mw-bs .main-scrollerThe main class for the fourth-level nested flow <DIV> page body element.
For example, to change the background of the main page layout body:
.mw-bs .main-scroller {background-color:grey}
.mw-bs .mw-containerThe main class for all container elements.
For example, to add more padding to every container element:
.mw-bs .mw-container {padding:25px}
.mw-flip.flip-container, .mw-flip.front, .mw-flip.backThe 'Flip' container layout type uses three main classes:
  • .mw-flip.flip-container: The main class for the flip container.
  • .mw-flip.front: The main class for the 'front' flip animation.
  • .mw-flip.back: The main class for the 'back' flip animation.
For example, to change the default height and width of the flip container:
.mw-flip.flip-container, .mw-flip.front, .mw-flip.back {height:350px;width:350px}
On this Page