Free Fluid-Hybrid Responsive Email Template in Only 36 Lines of Markup

Jeffrey Hoffman
Dec 4, 2015 · 2 min read

Creating a modern, responsive HTML email using the popular Fluid-Hybrid technique normally requires hundreds of lines of code chockablock full of nested tables, floating divs, Outlook-conditional logic and a wee bit of luck. Its complexity requires lengthy tutorials, layout calculators and boilerplate code generators — and in the end, you’re left with a staggering amount of markup that is fragile and hard to maintain.

Thankfully, it doesn’t have to be that way. There is a faster, easier way to build modern responsive emails. Take a look! Here’s the complete markup for a three-column table that fluidly drops to vertical rows on mobile devices:

<!-- This outer table wraps the entire email and provides
a consistent background color in all clients. -->
{table bgcolor=#fff width=100%}
{td align=center}
<!-- This three-column table fluidly "drops" into a three-row
table on mobile devices. -->
{table width=525 padding=10 valign=top font-size=15 mobile="fluid-drop"}
{td width=175 bgcolor=#eef}

{img src="left.jpg" height=155 width=155 align=right}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Cras bibendum malesuada faucibus.
{/td}
{td width=175}
{img src="center.jpg" height=155 width=155 align=right}
Pellentesque vitae rutrum ipsum. Integer sed aliquet
magna, sit amet auctor justo. Vestibulum egestas tellus a
euismod vulputate. Donec sapien nulla, egestas vulputate
odio a, luctus auctor quam.
{/td}
{td width=175 bgcolor=#efe}
{img src="right.jpg" height=155 width=155 align=right}
Vestibulum rutrum lacinia tellus a euismod. Fusce eu
faucibus quam. Vestibulum in ultricies arcu, non
consectetur felis. Vivamus laoreet fringilla nulla.
{/td}
{/table}
{/td}
{/table}

That's it! 36 lines of easy-to-read, easy-to-maintain markup that, when preprocessed by Inkcite, produces a Fluid-Hybrid responsive email that's rock solid in 40+ email clients and mobile devices. See for yourself - here's the Litmus compatibility test results.

How it Works

Inkcite is a free, open-source framework for building modern, responsive emails. Inkcite makes it easy for email developers to keep their code DRY (don’t repeat yourself) and integrate versioning, compatibility testing and minification into their workflow. Installation and getting started instructions available here.

Inkcite provides a standard, familiar markup designed for email. Inkcite transforms {table}, {td}, {img} and a dozen other tags into HTML that displays consistently across email clients. Using Inkcite's powerful mobile-attribute, you add cutting-edge responsiveness with just a few keystrokes. When set to fluid-drop Inkcite automatically injects all of HTML necessary to make the resulting <table> fluidly drop. (Inkcite also offers right-to-left fluid-stack and a variety of media query-based responsive modes when you want more control.)

Inkcite frees you from having to worry about inline styles, media queries, conditional logic and client rendering quirks - allowing you to focus on the message and design while preserving the control you expect from hand-coded emails.

Inkceptional

Tips for coding engaging, responsive emails with modern tools by the creator of Inkcite, the modular design system for modern, responsive email development. http://inkcite.com #emailgeek #MakeEmailBetter

Jeffrey Hoffman

Written by

Creator of Inkcite, the modular design system for modern, responsive email development. http://inkcite.com #emailgeek #MakeEmailBetter

Inkceptional

Tips for coding engaging, responsive emails with modern tools by the creator of Inkcite, the modular design system for modern, responsive email development. http://inkcite.com #emailgeek #MakeEmailBetter

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store