CSS Classes

Automatic Module Styling

What is a CSS Class?

A CSS Class is a collection of CSS declarations that can be applied to a module automatically. This allows you to change the look of a module quickly and easily.

How do CSS Classes work?

When a CSS Class is added to a module, all the CSS declarations that are configured for it on the back end are applied. Multiple CSS Classes can be added to a single module. Some are designed to work with certain modules and may break unintended modules.

Some CSS Classes are stored in the Creekside site theme and are accessible from all pages, these are global CSS Classes. Other Classes are unique to one page, they are local CSS Classes.

Code for the "card" CSS Class
Code for the "card" CSS Class

How To Apply a CSS Class

  1. In Page Builder, go to the relevant row/column/module settings
  2. Navigate to the Advanced tab
  3. Scroll down to the HTML Element section
  4. Type the relevant CSS Class name into the Class field
  5. Seperate additional CSS Classes with spaces
CSS Class Field

Index of Global CSS Classes

card

Purpose: group related modules by adding a background to a column

Intended for: columns

Code location: site theme

Before

After

clickable

Purpose: make the entire area of a column clickable

Intended for: columns

Code location: Global CSS/JavaScript in Page Builder

Before

After

Pro Tip

Combine both "card" and "clickable" CSS Classes to create a clickable card

card clickable

icons

Purpose: make groups of buttons into monochrome clickable text

Intended for: Button Group module

Code location: site theme