Skip to main content
Feedback

List component 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 list components.

Default player CSS

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

Class/SelectorDescription
.page-component-listThe main class applied to the entire list component in a flow.
For example, to increase the padding around all list components in a flow:.page-component-input {padding:15px}
.flow ulThe main class applied to unordered list <ul> components.
For example, to change the type of list-item marker in unordered lists to squares:.flow ul {list-style-type:square}
.flow olThe main class applied to ordered list <ol> components.
For example, to change the type of list-item marker in ordered lists to roman numerals:.flow ol {list-style-type:upper-roman}

Default legacy player CSS

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

Class/SelectorDescription
.mw-bs .mw-listThe main class applied to the <li> element of the component. This affects both ordered and unordered lists.
For example, to change the line-height for all lists within the component:.mw-bs .mw-list {line-height:2em}
.mw-bs ulThe main class applied to unordered list <ul> components.
For example, to change the type of list-item marker in unordered lists to squares:.mw-bs ul {list-style-type:square}
.mw-bs olThe main class applied to ordered list <ol> components.
For example, to change the type of list-item marker in ordered lists to roman numerals:.mw-bs ol {list-style-type:upper-roman}
On this Page