Skip to main content
Skip table of contents

Add Custom Styles to a Card


An Administrator can add a CSS class to any card to apply custom styles.

  1. In the Force.com App Menu, select Community Hub Setup.
  2. In the tab bar, click Pages.
  3. In Page to configure:, select the page you want to customize.

  4. Click Edit next to the card you want to customize.
  5. In CSS Class, enter one or more CSS classes separated by a space. Example: bg-promoted bold-card.
  6. 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


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.