Technical resources · Free builder

The HTML email signature structure that survives every client

Why an email signature cannot be built like a web page, which HTML and CSS subset is safe, and the exact structure Zign emits.

Treat an email signature as a document, not a component

A web page is rendered by a browser you can reasonably assume to be modern. An email signature is rendered by whatever engine the recipient's client happens to embed — WebKit in Apple Mail, Blink in Gmail, and in the case of desktop Outlook for Windows, Microsoft Word.

Word is the important one. It is not a browser, it has no support for flexbox, CSS grid or external stylesheets, and it treats a `<div>` with suspicion. Any layout that depends on modern CSS will silently degrade there, which is why the only reliable primitive is the nested table with an explicit width.

The safe subset

Safe: `<table>`, `<tbody>`, `<tr>`, `<td>`, `<a>`, `<img>`, `<p>`, `<span>`, `<br>`, and inline `style` attributes. Attributes such as `cellpadding`, `cellspacing` and `border` should be written explicitly as `0`, because some clients inject their own defaults when they are missing.

Avoid: `<div>` for layout, `<style>` blocks (Gmail strips them from the head), external CSS, web fonts, background images, `position`, `float`, `flex`, `grid`, CSS custom properties, and JavaScript of any kind. Every one of these either fails outright or behaves differently per client.

Shadows and radius are the borderline case. `border-radius` and `box-shadow` are ignored by old Outlook, which is acceptable because the degradation is graceful — the card simply renders with square corners and no shadow.

The structure itself

The signature is one outer table with a single column, which gives you a predictable stacking context on narrow screens without any media queries. Inside it, every row is a distinct part of the signature: identity block, contact rows, social icons, banner, disclaimer.

Two details matter more than they look. First, `border-collapse: collapse` on the layout tables so no client introduces a hairline gap between cells. Second, the signature container should carry an explicit background color: without it, clients that force-invert light content can turn the whole block black and make the text disappear.

<table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;background:#ffffff;">
  <tbody>
    <tr>
      <td style="padding:0 24px 0 0;vertical-align:top;width:138px;">
        <a href="https://example.com" style="text-decoration:none;">
          <img src="https://example.com/logo.svg" width="138" alt="Company logo"
               style="display:block;width:138px;height:auto;border:0;outline:none;">
        </a>
      </td>
      <td style="vertical-align:top;padding:0;">
        <p style="margin:0 0 4px 0;font-family:Arial,sans-serif;font-size:15px;font-weight:700;color:#202020;">
          Jane Doe
        </p>
        <p style="margin:0 0 12px 0;font-family:Arial,sans-serif;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#1769ff;">
          Creative Director
        </p>
        <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
          <tbody>
            <tr><td style="font-family:Arial,sans-serif;font-size:12px;line-height:20px;color:#555555;">
              <a href="mailto:jane@example.com" style="color:#555555;text-decoration:none;">jane@example.com</a>
            </td></tr>
          </tbody>
        </table>
      </td>
    </tr>
  </tbody>
</table>

Images: explicit width, HTTPS, alt text

Always set both the `width` attribute and the `style="width:…px"` rule. Clients that ignore CSS still honour the attribute, and clients that honour CSS get a stable value that cannot be overridden by the layout engine.

Reference images over HTTPS from a host you control. Images on a private network, a staging domain behind authentication or plain HTTP will show as broken for the recipient. Set `max-width:100%` on wide banners so mobile clients scale them instead of forcing a horizontal scroll.

Alt text is not decoration. Outlook blocks remote images by default for unknown senders, so the alt text is frequently the only thing visible in a first-time email.

Typography and color

Web fonts do not work. Use a stack of fonts that exist on Windows, macOS, Android and iOS: Arial, Helvetica, Verdana, Georgia, Trebuchet MS. Set `font-family` on the container and repeat it on the text elements that matter, because some clients reset inheritance inside tables.

For dark mode, avoid pure `#000000` text and pure `#ffffff` backgrounds where it can be helped. A near-black such as `#202020` on white inverts more gracefully, and declaring a background color on the container gives clients that support `prefers-color-scheme` a deterministic value to work from.

Testing before you ship

Copy the signature into a real message in each client you care about, send it to yourself, and open it on a phone. Check the four failure points: does the logo load, do the `tel:` and `mailto:` links work, does the block stay under a reasonable width on a 375px screen, and is anything clipped when the message is opened in dark mode.

Also check the raw size. HTML signatures above roughly 10 KB start getting truncated by Gmail, and large base64-embedded images are stripped entirely — another reason to reference images by URL.

FAQ

Related articles