Skip to the page
html email reference · why tables

Centering an HTML email with tables

type
layout pattern
applies to
centering a fixed-width email in the inbox pane
screen reader effect
n/a (both tables carry role="presentation")
common values
outer width="100%", inner width="600"

Where it goes

Wraps the entire email body, right after <body> opens.

Example

<table role="presentation" width="100%"><tr><td align="center">
  <table role="presentation" width="600">
    <tr><td>Content</td></tr>
  </table>
</td></tr></table>

Open this example in the editor →

Common mistakes

  • Skipping the outer full-width table and just setting the content table's own alignment — several clients, Outlook especially, ignore that and left-align it instead.
  • Forgetting cellpadding="0" cellspacing="0" on both tables — browsers add default spacing between cells that throws off pixel-precise layouts.

Related

Updated 24 October 2026. Practice it in the html email route, or read more on MDN.