Skip to main content
CSS Properties

padding

CSS property · 13 supported, 2 partial, 0 unsupported across 15 clients

padding controls the internal spacing of email layout cells and is one of the most frequently mishandled properties across email clients. While modern clients support shorthand padding correctly, Outlook on Windows interprets padding differently depending on the element type and often shifts content unexpectedly when padding is mixed between table cells and divs.

Client Support

ClientCategoryEngineSupport
GmailwebmailGmail WebSupported
Gmail AndroidmobileGmail MobileSupported
Gmail iOSmobileGmail MobileSupported
Outlook 365webmailOutlook WebSupported
Outlook (New)desktopOutlook WebPartial
Outlook ClassicdesktopMicrosoft WordPartial
Outlook iOSmobileOutlook MobileSupported
Outlook AndroidmobileOutlook MobileSupported
Apple MaildesktopWebKitSupported
Apple Mail iOSmobileWebKitSupported
Yahoo MailwebmailYahooSupported
Samsung MailmobileSamsungSupported
ThunderbirddesktopGeckoSupported
HEY MailwebmailWebKitSupported
SuperhumandesktopBlinkSupported

Client-by-client behaviour for padding

Fully supports padding (13): Gmail, Gmail Android, Gmail iOS, Outlook 365, Outlook iOS, Outlook Android, Apple Mail, Apple Mail iOS, Yahoo Mail, Samsung Mail, Thunderbird, HEY Mail, Superhuman.

Partial support (2): Outlook (New), Outlook Classic. Expect rendering quirks unique to each engine — partial support typically means a subset of values, an ignored shorthand, or sanitizer-specific rewrites.

When to use padding in email

  • Adding vertical breathing room above and below CTA buttons inside <td> cells.
  • Creating responsive content gutters by combining cell padding with max-width on the outer table.
  • Constructing card-style sections by combining padding with background-color and border-radius.

Rendering behaviour and edge cases

  • Outlook on Windows applies padding inconsistently on <div> elements — use <td> with padding for layout instead.
  • Apple Mail and modern Gmail honor shorthand padding values, but older Yahoo Mail builds occasionally drop the bottom value.
  • When padding is set on a button anchor, some clients add their own native button padding on top, doubling the apparent space.

Recommended fallback strategy

Apply padding to <td> elements rather than <div> wrappers whenever possible. Keep padding within a single shorthand declaration to avoid Outlook reordering issues. For large hero spacing, use spacer rows with line-height instead of padding when targeting Outlook 2007–2019.

Fixes & Workarounds

Outlook (New)

Partial

"padding" is not supported in this email client.

Outlook Classic

Partial

Outlook ignores padding on <a> tags. Use the MSO font-width trick with &#8202; hair spaces, or use VML. React Email's <Button> handles this automatically.

Before

<a href="https://example.com"
  style="background-color: #6d28d9; color: #fff;
         padding: 12px 32px; display: inline-block;
         text-decoration: none;">
  Click Here
</a>

After

<!--[if mso]>
<table role="presentation" cellpadding="0" cellspacing="0" border="0"
  style="border-collapse: collapse;">
  <tr>
    <td style="background-color: #6d28d9; padding: 0;
               mso-padding-alt: 12px 32px;">
      <!--[if mso]>
      <i style="letter-spacing: 32px; mso-font-width: -100%;
                mso-text-raise: 18pt;" hidden>&#8202;</i>
      <![endif]-->
      <a href="https://example.com"
        style="background-color: #6d28d9; color: #fff;
               mso-text-raise: 9pt; text-decoration: none;
               font-family: Arial, sans-serif; font-size: 14px;
               font-weight: bold;">Click Here</a>
      <!--[if mso]>
      <i style="letter-spacing: 32px; mso-font-width: -100%;"
         hidden>&#8202;</i>
      <![endif]-->
    </td>
  </tr>
</table>
<![endif]-->
<!--[if !mso]><!-->
<a href="https://example.com"
  style="background-color: #6d28d9; color: #fff;
         padding: 12px 32px; display: inline-block;
         text-decoration: none;">
  Click Here
</a>
<!--<![endif]-->

Use MSO font-width trick for reliable button padding in Outlook

Related Features

Test your email across all 15 clients

Preview rendering, catch CSS issues, and get actionable fixes — free.

Try Emailens Free

Support data last updated Apr 27, 2026 · synced from caniemail.com via @emailens/engine.