Why Email Clients Render Differently
Web browsers have converged on modern standards (HTML5, CSS3, JavaScript). Email clients have not. Each client uses a different rendering engine, and some of those engines are decades behind modern web standards.CSS Support Comparison
The most impactful differences between clients come down to which CSS properties they support.Layout
Typography
Visual
Responsive
Client-Specific Behaviors
Gmail
- Strips
<style>blocks in the<head>. All CSS must be inlined. - Prefixes class names with a random string, making class-based selectors unreliable.
- Clips messages larger than ~102 KB. If your HTML exceeds this size, Gmail shows a “View entire message” link and truncates the rest. This breaks tracking pixels placed at the bottom of the email.
- Supports dark mode but applies its own color transformations. Light backgrounds may be inverted to dark, and text colors may be overridden.
- Blocks external images by default for users who haven’t opted in to image display (less common now but still affects some accounts).
Outlook (Windows Desktop)
- Uses Microsoft Word’s rendering engine — the most restrictive of any major client.
- Does not support
border-radius,background-image(use VML),max-width,float, Flexbox, or Grid. - Requires table-based layouts.
<div>elements do not behave predictably for layout purposes. - Adds extra spacing around images and between table cells. Use
display: blockon images andcellpadding="0" cellspacing="0"on tables. - Conditional comments (
<!--[if mso]>) let you target Outlook specifically with alternative markup:
Apple Mail
- Most capable renderer — supports WebKit CSS including media queries, animations,
@font-face, gradients, and modern selectors. - Supports dark mode with the
prefers-color-schememedia query, allowing you to provide explicit dark mode styles. - Mail Privacy Protection (iOS 15+) pre-fetches tracking pixels through a proxy, which inflates open rates and masks recipient IP addresses. This affects analytics accuracy but not rendering.
Yahoo Mail
- Rewrites CSS class names with a
yivprefix, breaking class-based selectors. - Supports
<style>blocks but rewrites them, so test carefully. - Strips certain CSS properties inconsistently across its web and mobile apps.
Building for Maximum Compatibility
The Foundation: Table-Based Layout
Tables are the only layout mechanism that works reliably in every email client, including Outlook. Use tables withrole="presentation" (for accessibility) and explicit cell sizing.
Inline All CSS
Since Gmail strips<style> blocks, inline your CSS on every element. Lettr’s Topol editor does this automatically when you export a template.
Safe Fonts
Web fonts (@font-face) only work in Apple Mail and a handful of other clients. Always specify fallback system fonts:
Images
- Always include
alttext — images may be blocked or slow to load - Use
display: blockto prevent Outlook from adding unwanted spacing - Set explicit
widthandheightattributes to prevent layout shifts - Use absolute URLs for image sources (Lettr’s storage domains provide reliable hosting for email assets)
Buttons
CSS-styled buttons (border-radius, background-color on <a> tags) do not render in Outlook. Use a hybrid approach with VML fallback, or use a table-based button:
The
border-radius on the <td> will be ignored in Outlook — the button will appear square. This is an acceptable degradation. The button remains functional in every client.Dark Mode
Many email clients now support dark mode, which can dramatically change how your email looks. Clients handle dark mode differently:Defensive Dark Mode Strategies
- Use transparent backgrounds where possible instead of white — they adapt naturally to dark mode.
- Avoid pure white (
#ffffff) backgrounds — use a very light gray (#f8f8f8) that dark mode engines transform more gracefully. - Add a thin transparent border around logos on transparent backgrounds to prevent them from disappearing against dark backgrounds.
- For Apple Mail, provide explicit dark mode styles via the
prefers-color-schememedia query (this only works where<style>blocks are supported).
Testing Your Emails
Given the inconsistencies across clients, testing is essential before sending.Common Mistakes
Designing for web browsers instead of email clients
Designing for web browsers instead of email clients
If you build an email using Flexbox, Grid, external CSS, or JavaScript, it will break in most email clients. Email HTML is closer to HTML from the early 2000s. Start with table-based layouts and inline CSS — not with modern web development practices.
Not testing in Outlook desktop
Not testing in Outlook desktop
Outlook for Windows uses Microsoft Word’s rendering engine and behaves very differently from Outlook web or Outlook mobile. An email that looks fine in your browser and on your phone can be completely broken in Outlook desktop. Always test with the Windows desktop version.
Exceeding Gmail's clipping threshold
Exceeding Gmail's clipping threshold
Gmail clips emails larger than approximately 102 KB of HTML. When clipped, tracking pixels at the bottom of the email are hidden, and the recipient sees a “View entire message” link. Keep your HTML lean — remove unnecessary whitespace, avoid excessive inlining, and consider whether all that content needs to be in a single email.
Ignoring image alt text
Ignoring image alt text
When images are blocked (still common in some corporate Outlook environments), the
alt text is the only thing the recipient sees where the image should be. Write descriptive alt text that communicates the image’s purpose: alt="Your order has shipped" instead of alt="image1" or no alt text at all.Forgetting mobile rendering
Forgetting mobile rendering
Over 60% of emails are opened on mobile devices. If your email is fixed-width with no responsive considerations, it will require horizontal scrolling on phones. Use fluid layouts (
width: 100%; max-width: 600px;) and test on both iOS and Android devices.Related Topics
Templates
Build and manage email templates with the Topol editor
Content Types
When to use HTML, plain text, and AMP email content types.
Topol Editor
Build responsive, cross-client email templates visually in Lettr.
Storage Domains
Host images and assets for your emails on your own storage domain.