Intro
You can apply CSS styling to cards embedded in the email body of your campaigns. This article describes the process. To learn more about creating a campaign, see our article on the Domo Campaigns App.Known Limitations
The following are known limitations of this feature.-
Supported components include:
- cards
- You can only add one CSS class per component
-
Adding the class tag to the following card fields makes no change to the card’s styling:
- Title
- Summary Number
- Description
- Alert
- Comment
- Unsubscribe
- Adding the CSS tag to the fields listed above does not generate an error, but the tag is not added in the HTML node.
Adding CSS to a Card
- In the Campaigns app, select a campaign to open it.
- In the Email Body tab, locate the Email Body Editor.
-
Switch to HTML mode by selecting
Change mode in the toolbar.

- Add an HTML style tag at the top of the editor: <style>
- Inside the style tag, write your custom CSS class. Make sure to close the style tag: </style>
- Select Add Card to add a card to the email.
-
Edit the card tag and add a class tag followed by the name of your custom class.

- Select Save to save your changes.