td background not auto-fit in google gmail client

Hi, I'm currently working on an eDM which needs a background image. I was using the td's background attribute. It looks fine in many email client but the android default email client that using auto-fit wrapped text but didn't scale my background at the same time. It broke my layout.
Does anyone know how I could fix this so that the background will fit the device width?


zerocents zerocents, 3 years ago

You cannot have a scalable background image on gmail since it will block the background-size style you would need to contain the image to the width of the container. You need to stop gmail from resizing your table. This can be done by using min-width on a wrapper div.

<div style="min-width: 600px">

<table cellspacing="0" cellpadding="0" border="0" width="100%">
    <td align="center">

    <table cellspacing="0" cellpadding="0" border="0" align="center">
        <td width="600" align="left">

        <!-- Content here -->




Michael Muscat

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free