Email at scale
Blog
x‑Maizzle

Hybrid Approach. A Practical Solution for Email Code Structure

July 30, 2025 - Reading time: 28 minutes

When building HTML emails, our two primary goals remain unchanged: maximum flexibility, minimal code complexity.

We also want to eliminate those infamous "Outlook Ghost Tables". The unnecessary nested <table>s that developers still sprinkle throughout their codebases to "make Outlook behave". Here's a proven technique that can help.

🧪 The Hybrid Method: Understanding the Core Principle with a different perspective

Most people overlook a very basic shift, but it changes everything.

Instead of applying width on <table> elements, try applying it on the <td> tag. This tiny adjustment leads to a powerful layout mechanic with major side effects:

  • Automatic shrinkage of layout on small screens
  • Natural stacking behavior across clients
  • Cleaner code with fewer ghost tables

Why This Works

When you set width on <td> instead of <table>, you're leveraging the natural table cell behavior. Table cells automatically adjust their width based on content and available space, which creates better responsive behavior without media queries.

Traditional approach: <table width="600"> forces rigid width Hybrid approach: <td width="600"> suggests maximum width but allows flexibility

🧱 One Column Example

Article content

🧩 Two Columns Example (with Hybrid Technique)

Article content

✨ What's the Big Deal?

Most builders, even advanced engines like Mailchimp, Stripo, BEE, MJML, overlook this subtle trick.

But once you understand how this shift affects column behavior, fallbacks, and Outlook rendering, you realize that many of the bloated table wrappers and fallbacks are no longer necessary.

The key benefits:

  • Reduces code complexity
  • Maintains Outlook compatibility without extra hacks
  • Creates more predictable responsive behavior

🔍 Real-World Test Results

Tested across: Gmail, Outlook 2016/2019/365, Apple Mail, Yahoo Mail, Thunderbird

  • Desktop results: Consistent rendering across all clients
  • Mobile results: Natural stacking on screens below 600px
  • Outlook quirks: No ghost tables needed for basic layouts

🚀 Progressive Enhancement Strategy

The key to success with this hybrid approach is implementing progressive enhancement. Start with a solid foundation that works everywhere, then layer on the hybrid technique for enhanced behavior in modern clients.

Want to implement this in your workflow? Start with simple one-column layouts and gradually test more complex structures. The key is understanding when this technique shines.

Currently there are no comments, so be the first!