Skip to main content
Feedback

Detecting the correct CSS style

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.

Learning how to detect and identify the CSS style you should target is a fundamental skill required for using CSS to customize your flows.

Overview

Although the CSS reference outlines the main CSS styles within , you may need to target specific, more complex CSS selectors that are not detailed in the reference.

This process is made easier by using a browser CSS inspector tool, such as the 'Google Chrome Dev Tools' console in Google Chrome (right-click on a web page and select Inspect). These tools allow you to identify exactly which CSS styles you need to target and override when developing your custom CSS styles.

A worked example

In the following example, a flow running the default legacy player is inspected in Google Chrome:

Detecting the correct CSS style

  • A heading is inspected in the flow web application, identified as an 'H2' (heading 2) element. Step 1

  • The HTML for the element is shown in the Elements console. Step 2

  • The classes that are applied to the element are shown in the Styles panel, showing that the '.mw-bs h2' CSS selector is what you should target in a default legacy player if you wish to override the style of all second-level headings in the flow. Step 3

Additional resources

The following links provide more information on using common web browser developer tools:

On this Page