Background images in individual table cells in email


June 03, 2014

I was recently tasked with developing assets for an email campaign for work. The design was already finalized, and just needed to be built out as a Mailchimp template. These types of requests frequently hit my desk, and they’re usually fine, but this one was tricky—having background images under dynamic copy. Anyone that has done email templates might understand what a potential problem this is. Email clients are finicky, requiring developers to revert to development standards 15 years ago (which is to say, no standards at all). Tables, inline CSS, etc. are the norm. But even inline CSS wasn’t solving my problem–in initial tests, adding a background image to the table cell yielded poor results across devices. So, after a bit of research (and pulling of hair, gnashing of teeth, etc.) I came across this fantastic little hack via Campaign Monitor: Here are the steps:

<!--[if gte vml 1]>

	<v:image style='width: 600px; height: 402px; position: absolute; top: 0; left: 0; border: 0; z-index: -1;' src="" />


According to Campaign Monitor’s blog post, this technique has been tested and works in most major mail clients, Which is great. Is it hacky? Absolutely. But anybody building an email campaign should expect no less at this point.