Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Tutorials
Tutorials
Explore in-depth tutorials for operating your VTEX store.
Tutorials
Message center
Templates
Which style of CSS should be used in emails?
Which style of CSS should be used in emails?

This rule is valid for any type of email, whether marketing, a Message Center template or Master Data: in emails, use CSS inline.

This is because various email servers ignore a CSS code in the heading, the style or any file external to the HTML. You must therefore enter the CSS in the body of the HTML, so that the code is read and acted on.

Tip! Whenever you want to hide any feature of an element that the VTEX control shows automatically, change its color to the background color of your email. E.g.: In an abandoned shopping cart, the shelf of items is assembled in the structure ul > li.  This structure shows dots (•) in the HTML. To hide these dots, just change this property.

Before calling up the shelf, indicate that everything must be white (or the background color of your email). In the shelf template, apply the color again (black, or whatever color you use for text) in the content. In this way, the ul and  li will be white (invisible), but inside them the texts will appear in color (visible).

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback