Custom CSS allows you to customize the appearance and layout of pages created with the Content Designer. You can use custom CSS in the following scenarios:
- Creating a new page with the Content Designer.
- Migrating a page created with the Classic Editor that already includes custom CSS to the Content Designer.
Add custom CSS
The Content Designer supports only CSS selectors based on data-c13-* attributes. Selectors that depend on the page’s internal HTML structure, such as internal class names, IDs, or positional selectors like:nth-child(), are ignored. This ensures your custom CSS remains compatible, even as the underlying HTML changes over time.
Prerequisite:
- You are an administrator in the Staffbase Studio.
-
In the Studio, navigate to Settings > Branding > Intranet.
-
Under Advanced Settings, in Custom CSS, select the Content Designer tab.
-
Add CSS rules that target the supported selectors.
-
Click Save.
You have now applied custom CSS in the Content Designer.