Understand Gmail CSS support
Gmail supports many standard CSS properties, selectors and embedded style blocks. Unsupported rules may be ignored, and support can vary according to the application and account environment.
Consult Google's official Gmail CSS documentation before introducing a property that is essential to your layout.
Create a readable base template
Apply essential text and background styling inline. Use embedded styles for enhancements that are not required to understand the message.
Do not rely on external CSS or JavaScript to deliver essential information. Email clients may remove or restrict these resources for security and compatibility reasons.
<p style="font-family:Arial,sans-serif;
font-size:16px;line-height:1.5;
color:#222222;">
Your subscription has been confirmed.
</p>Review generated HTML size
Large messages can be clipped in Gmail. Repeated inline styles, excessive nested markup and long tracking URLs can increase the final message size.
Remove unused markup and test the actual message produced by your delivery provider. The received HTML may differ from the original source because of link rewriting and personalization.
Test Gmail on representative devices
Inspect both desktop webmail and mobile applications when they are relevant to your audience. Verify the message with images disabled and check the primary action.
Use MailViewer to isolate layout problems before sending your next Gmail test. Treat browser rendering and inbox rendering as separate stages of validation.
Test your HTML email
Use MailViewer to preview, format and validate your HTML email directly in your browser.
Open MailViewer →