HTML Email Builder
Only inline CSS and table-based layout are fully supported across all email clients, including Outlook.
This document explains:
What is supported
What is not supported
Why warnings appear
How to resolve each warning
Best practices for creating fully compatible HTML email templates
Microsoft Outlook (Windows Desktop versions) uses the Microsoft Word rendering engine, not a browser engine.
Because of this:
Modern CSS has limited or no support
Many layout techniques break
Some properties are ignored entirely
Following the rules below ensures consistent rendering across:
Outlook (2007–2019, 365 Desktop)
Outlook Web
Gmail
Apple Mail
Other major email clients
<style> Tags Not AllowedEmail templates must not contain:
<style>
.header { color: red; }
</style>Many email clients strip or partially support <style> blocks.
Use inline CSS only:
<td style="color:red;">
All styling must be written inside the style="" attribute.
This is not allowed:
<link rel="stylesheet" href="style.css">
Email clients do not load external stylesheets.
All CSS must be inline.
Emails must use <table>-based layout.
<div> for structure
Flexbox
CSS Grid
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="600" cellpadding="0" cellspacing="0">
<tr>
<td>
Content here
</td>
</tr>
</table>
</td>
</tr>
</table>max-width Not Supported in OutlookThis will not work reliably:
<div style="max-width:600px;">
Use fixed width tables:
<table width="600">
Recommended email width: 600px
<div> and <p> Is Unreliable in OutlookExample of unreliable structure:
<div style="padding:20px;">
Apply padding inside <td>:
<td style="padding:20px;">
Always use table cells for spacing.
Margins behave inconsistently across email clients.
<td style="padding:20px;">
Not supported:
background: linear-gradient(90deg, #0f2027, #203a43);
Outlook will ignore gradients.
Use a solid background color
Use a gradient image
Use VML (advanced Outlook technique)
<td style="background-color:#0f2027;">
border-radius Not Fully SupportedRounded corners may not render in Outlook Desktop.
Avoid using border-radius for critical design elements
Use images for guaranteed rounded visuals
<a href="#" style="padding:15px 25px; background:#000;">
Outlook ignores padding on <a> elements.
<table cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#000000" style="padding:15px 25px;">
<a href="#" style="color:#ffffff; text-decoration:none;">
Click Here
</a>
</td>
</tr>
</table>Best practices:
Move padding to <td>
Use bgcolor attribute
Avoid styling the anchor for layout
Always follow these guidelines:
<img src="https://example.com/image.jpg"
width="600"
style="display:block; border:0;"
alt="Image">Requirements:
Use full HTTPS URLs
Always define width
Use display:block
Remove image borders
Add alt text
Arial
Verdana
Tahoma
Georgia
Times New Roman
Not supported in Outlook Desktop.
style="font-family: Arial, Helvetica, sans-serif;"
These are SAFE in all major email clients including Outlook:
Feature | Supported |
|---|---|
Tables | ✅ Yes |
Inline CSS | ✅ Yes |
Fixed width (600px) | ✅ Yes |
Padding inside | ✅ Yes |
bgcolor attribute | ✅ Yes |
Font-family (Arial, Verdana, etc.) | ✅ Yes |
Image with width attribute | ✅ Yes |
Feature | Outlook Support |
|---|---|
| ❌ No |
External CSS | ❌ No |
Flexbox | ❌ No |
CSS Grid | ❌ No |
max-width | ❌ No |
min-height | ❌ No |
position:absolute | ❌ No |
float | ❌ No |
CSS animations | ❌ No |
Hover effects | ❌ No |
Google Fonts (Desktop) | ❌ No |
border-radius | ⚠ Partial |
gradient | ❌ No |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Email</title>
</head>
<body style="margin:0; padding:0; background-color:#f4f6f9;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<table width="600" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding:20px; font-family:Arial, sans-serif;">
Email Content
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>When warnings appear in the HTML Builder:
Warning | Resolution |
|---|---|
| Remove the |
External stylesheet detected | Remove |
Padding on div/p | Move padding to |
max-width not supported | Use fixed table width |
Border-radius warning | Replace with image or accept square corners |
Gradient not supported | Use solid color or background image |
Button padding issue | Use table-based button |
To ensure maximum compatibility:
Use table-based layout
Write all CSS inline
Keep width fixed at 600px
Avoid modern CSS
Use safe fonts
Use padding inside <td>
Test in Outlook Desktop
Following these rules guarantees:
No rendering issues in Outlook
No HTML Builder warnings
Consistent appearance across all major email clients
Production-ready, professional email templates