EML-44Recommended
Inline the CSS and plan for it to fail
Put the CSS that matters inline on each element, and make sure the message still reads if a client strips the rest.
How to do it
Some clients drop <style> blocks, and some drop a whole block when one rule has an error. Inline colours, fonts and spacing with a build tool such as Juice or a template engine. Keep a <style> block only for extras, such as media queries and dark mode. Use web-safe fallback fonts after any custom font. Prove it still reads as Test in the clients your readers use says.
Examples
HTML example
<p style="margin:0 0 16px; font:16px/1.5 Arial, Helvetica, sans-serif; color:#1b1f3b;">
Your order has shipped.
</p>
How to check
Remove the <style> block from a test copy and open it. The text is readable, ordered and on brand, only plainer.
Related rules
- EML-49 Test in the clients your readers use in Email
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/layout-and-accessibility/inline-css">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.