
Table Layout in HTML Email: Patterns That Hold
Tables persist in email because they are the layout primitive the renderers in a typical support matrix draw most consistently. The skeleton pattern, fluid-hybrid markup, spacing rules, and the div question.
TL;DR: HTML email table layout persists for one reason — the table is the layout primitive that the renderers in a typical support matrix draw most consistently, including the Word engine inside classic Outlook and the strictest webmail sanitizers. This article covers the skeleton pattern that structures a template, the fluid-hybrid technique that serves fixed-width and fluid clients from one markup, spacing built on the primitives that hold up across renderers, the accessibility hygiene tables require, and the honest preconditions under which a team may leave tables behind.
Why tables survived here and nowhere else
The web retired table layout two decades ago because browsers converged on CSS layout that worked. Email kept it because email's weakest renderer never converged on anything. The Word rendering engine in classic Outlook for Windows has no working float, no flexbox, no grid — it lays out documents the way a word processor does, and the table is the structural element it supports most fully. Microsoft's rendering reference for this engine was written for Outlook 2007, which "uses the HTML parsing and rendering engine from Microsoft Office Word 2007": it lists float among the CSS properties that Word 2007 does not support, and gives table cells width, height, and padding, which div and p do not get; caniemail test data records no float, flexbox, or grid support in Outlook 2007 through 2019 for Windows. Microsoft's published migration says existing installations of classic Outlook through perpetual and subscription licensing will continue to be supported until at least 2029 (as of November 2026), so for any support matrix that includes classic Outlook for Windows, the table is not a legacy habit; it is the current floor.
Webmail sanitizers reinforce the choice from the other side. Gmail documents which CSS it supports and says it might ignore unsupported CSS properties and selectors, and caniemail test data shows other webmail clients, Outlook.com among them, supporting different subsets of CSS — but in that same test data the table element is supported in every client listed (client results dated September 2019 through January 2024, as of November 2026). We found no Google documentation of how Gmail's filter treats HTML attributes compared with the equivalent CSS (as of November 2026); a working hypothesis, not a documented rule, is that structure carried in HTML attributes survives filters that strip the equivalent CSS. On that hypothesis, the table skeleton is robust not because it is old but because it lives below the layer the filters operate on.
This is a baseline-layer decision that follows from the support matrix, not a universal law. A team whose matrix contains no Word-engine client faces a genuinely different calculation, and this article ends with that honest case. Everyone else builds on tables, and the craft is building on them deliberately.
The skeleton pattern: container, row, column
The canonical structure is three levels, each with one responsibility. An outer wrapper table spans the full viewport width and does one job: centering. Inside it, a container table carries the email's fixed maximum width and holds everything the recipient reads. Inside that, one nested table per structural row, with table cells as columns.
<table role="presentation" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table role="presentation" width="600" border="0" cellpadding="0" cellspacing="0"
style="width:600px; max-width:600px;">
<tr>
<td style="padding:24px;">
<!-- one structural row of content -->
</td>
</tr>
</table>
</td>
</tr>
</table>Two details in that sample carry the pattern's reliability. First, the attribute discipline: border, cellpadding, cellspacing, width, and align are set as HTML attributes, not only as CSS — a working hypothesis, not a documented rule, is that attribute-level instructions survive sanitizers that CSS does not, and the Word engine honors them natively (Microsoft's Word 2007 rendering reference lists them as supported table attributes). The CSS width alongside the width attribute is not redundancy; it is the same instruction delivered on both channels, for renderers that read only one.
Second, the nesting has a purpose per level. Purposeless nesting is the pattern's failure mode: every additional table level is real bytes added to the message, which matters where a client clips long messages (we found no Google documentation of a Gmail clipping threshold as of November 2026, so any byte budget is a working hypothesis, not a documented rule), and real reading cost for the next maintainer. A skeleton whose every table answers "what is this level for" stays maintainable; a skeleton assembled by copy-paste accretion does not.
Fluid-hybrid: one markup for fixed and fluid clients
The skeleton above is fixed-width, which a mobile client can render as a desktop-scale email scaled down. The fluid-hybrid technique — the pattern the community has also called spongy coding — serves both worlds from one markup: fluid by default, fixed where the fixed-width engine demands it.
The fluid half is plain CSS: the container table gets width 100 percent with a max-width cap, so clients that support max-width — caniemail test data lists Apple Mail, Gmail, Outlook.com, and Yahoo Mail among them (as of November 2026) — render it edge-to-edge on a phone and capped on a desktop. The fixed half is a ghost table — a conditional wrapper that, as a working hypothesis rather than a documented rule (we found no Microsoft documentation of the mso conditional comments as of November 2026), only the Word engine parses, handing it the explicit geometry it needs because it does not reliably honor max-width (Microsoft's Word 2007 rendering reference lists max-width as unsupported; caniemail test data reports partial support, on table elements only, in Outlook 2019 for Windows and in Windows Mail, as of November 2026):
<!--[if mso]>
<table role="presentation" width="600" border="0" cellpadding="0" cellspacing="0" style="width:600px;"><tr><td>
<![endif]-->
<table role="presentation" border="0" cellpadding="0" cellspacing="0"
style="width:100%; max-width:600px; margin:0 auto;">
<tr>
<td style="padding:24px;">
<!-- content -->
</td>
</tr>
</table>
<!--[if mso]>
</td></tr></table>
<![endif]-->On that working hypothesis, every client except classic Outlook sees only the fluid table; classic Outlook sees it wrapped in fixed 600-pixel geometry. The ghost table is introduced here because the layout skeleton owns it conceptually — the wider Word-engine toolkit, conditional patterns and their maintenance discipline included, has its own dedicated coverage on this topic.
What makes fluid-hybrid age well is what it does not require: media queries. Several client variants have historically ignored or stripped media queries — caniemail test data records no media-query support in Outlook 2007 through 2019 for Windows, Windows Mail, or Gmail's mobile webmail (Windows Mail and Gmail mobile webmail results dated January and February 2020, as of November 2026) — and a layout whose small-screen behavior is intrinsic to the markup keeps its floor high in exactly those variants. How fluid-hybrid trades against media-query responsive strategy — and when to combine them — is the responsive coverage's territory; the skeleton is what both strategies build on.
Spacing that holds across renderers
Spacing is where table layouts quietly diverge across renderers, and the baseline rule is short: padding on table cells is the reliable spacing primitive (in Outlook 2007 through 2019 for Windows and in Windows Mail, caniemail test data records padding as supported only on table cells, with vertical padding set to the largest value across all cells of a row). Margin support is inconsistent enough across the Word engine and the sanitizer tier — caniemail test data records partial margin support, for differing reasons, in Outlook for Windows, Outlook.com, Gmail, and Yahoo Mail (as of November 2026) — that margin stays out of the baseline layer entirely; a spacing scheme built on margins can hold in the preview and drift in the inbox.
| Spacing primitive | Baseline-safe | Working note |
|---|---|---|
| Cell padding | Yes | The default carrier for both vertical and horizontal space; in Outlook 2007–2019 for Windows and Windows Mail, vertical padding takes the largest value across a row (caniemail test data) |
| Margin | No | Inconsistent across the Word engine and sanitizer tier (caniemail test data); enhancement layer only |
| Spacer row | Yes | An empty row with an explicit height; verbose, and in Outlook 2007–2019 for Windows, sizes set in attributes don't scale in 120 dpi mode (caniemail test data) |
| Border on cells | Yes | Reliable for dividers, up to 8px in Outlook 2007–2019 for Windows and Windows Mail (caniemail test data); setting them per side, avoiding shorthand, is a working practice, not a documented rule |
Between padding and spacer rows, the working advice is consistency over preference: either can carry vertical rhythm, but a template that mixes them ad hoc becomes unreadable to its next maintainer and unpredictable to restyle. Pick one scheme template-wide and record it in the template's documentation.
Dividers earn one specific caution: set borders per side rather than through shorthand. A working hypothesis, not a documented rule, is that individual sanitizers unpack shorthand differently, so a border-top declared explicitly survives where a composite border declaration gets partially rewritten.
Accessibility hygiene and the div question
Layout tables carry one non-negotiable attribute: role="presentation" on every one of them. Without it, assistive technology can announce the email as a data table, with row and column information. With it — as long as the mail client keeps the attribute and the table is not focusable or otherwise interactive and carries no global ARIA states or properties — WAI-ARIA 1.2 requires user agents not to expose the semantics of the table, or of its rows and cells that have no explicit role of their own, while still exposing the content inside, so screen readers can read the content in source order. Clients do not all keep it: caniemail test data records no role support in Windows Mail, HEY, Orange, and the desktop and Android versions of GMX and WEB.DE, among others, and support only on the table tag in Yahoo Mail and AOL (as of November 2026). It appears on every table in every sample above because it belongs on every layout table without exception. The wider accessibility craft for email — headings, language metadata, contrast across rendering states — has its own coverage on this topic; this rule is the layout layer's contribution to it.
Then the honest question: when may a team drop tables for div-based layout? The preconditions are two, and both are matrix decisions rather than style preferences. First, the support matrix contains no Word-engine client — because divs as layout simply do not hold there. Second, the team accepts the degraded states that the strictest sanitizers produce when CSS-only layout is partially stripped, and records that acceptance in the matrix as a designed fallback. A consumer-only audience with negligible classic-Outlook share can meet both preconditions legitimately; a mixed B2B audience that includes classic Outlook cannot meet the first. Either answer is defensible when it is recorded, and neither is defensible as an unexamined default.
Whichever skeleton a team chooses, modern CSS stays in the enhancement layer. The skeleton is what the weakest supported renderer sees, and everything above it — media queries, designed dark themes, decorative polish — must fail silently down to a complete, readable email. That single-directional contract, more than any specific markup pattern, is what table layout in email is actually teaching: the design is the baseline, and everything else is permission the client may decline.