I am struggling with creating the header section for an HTML email that is currently under construction. I am using background-img url
for the image with content overlay, but unfortunately Outlook 2007, 2010, and 2016 do not support background-images
on tables. I came across this workaround involving divs. However, divs are not as reliable as tables for emails, so I am looking for a solution that strictly uses the table structure.
Is there a way to achieve this using only a table
structure?
Current approach:
<table border="0" cellpadding="0" cellspacing="0" style="max-width:692px; background-image: url(https://cdn2.hubspot.net/hubfs/3055391/Inbound/CPD%202017/Email/Newsletter%20%20-%20Customers/header-image.png);" width="692" height="400">
<tbody>
<tr>
<td valign="top" align="center" style="font-family:'Open Sans',Helvetica,Arial,sans-serif;padding:25px 28px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left" style="font-family:'Open Sans',Helvetica,Arial,sans-serif;">
<a href="#" target="_blank">
<img alt="LOGO" src="#" style="display:block;border:0px; font-family:Helvetica,Arial,sans-serif;color:#ffffff">
</a>
</td>
<!-- SOCIAL ICONS -->
<td style="text-align: right;">
<!--YouTube -->
<a href="#"><img src="https://cdn2.hubspot.net/hubfs/3055391/Inbound/CPD%202017/Email/Newsletter%20%20-%20Customers/youtube-icon.png"></a>
<!--Twitter -->
<a href="#"><img src="https://cdn2.hubspot.net/hubfs/3055391/Inbound/CPD%202017/Email/Newsletter%20%20-%20Customers/twitter-icon.png"></a>
<!--LinkedIn -->
<a href="#"><img src="https://cdn2.hubspot.net/hubfs/3055391/Inbound/CPD%202017/Email/Newsletter%20%20-%20Customers/linkedin-icon.png"></a>
<a href="#"><img src="https://cdn2.hubspot.net/hubfs/3055391/Inbound/CPD%202017/Email/Newsletter%20%20-%20Customers/facebook-icon.png"></a>
</td>
</tr>
<!----------------->
<!-- HEADER TEXT -->
<!----------------->
<tr>
<td colspan="2" style="padding-top:40px;">
<!-- PADDING-->
</td>
</tr>
<tr>
<td colspan="2" style="height: 100px; color: #fff; font-family:'Open Sans',Helvetica,Arial,sans-serif; text-align: center; font-size: 26px; padding-bottom: 10px; text-transform: uppercase;">
TEXT<br> HERE
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>