Add Custom Styles to a Card
An Administrator can add a CSS class to any card to apply custom styles.
- In the Force.com App Menu, select Community Hub Setup.
- In the tab bar, click Pages.
In
Page to configure:
, select the page you want to customize.- Click Edit next to the card you want to customize.
- In
CSS Class
, enter one or more CSS classes separated by a space. Example:bg-promoted bold-card
. - Click Save.
The CSS classes that support Card Types on Community Hub can be accessed from Bootstrap.
Here are a few examples of CSS classes.
m-card-as-alert alert-success
m-card-as-alert alert-info
m-card-as-alert alert-warning
m-card-as-alert alert-danger