Outlook is breaking my email - html

Having some issues with an email I am designing. I am trying to have the three tables alongside each other, with the next three below (but done so when I view it on mobile it will be one after the other.) This works well in email clients like yahoo and hotmail but it starts breaking in outlook, where two will be side by side with the next table being below (creating a huge space on the right side of the email.) I am quite new to email design, so any help would be brilliant.
<table width="593" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="593"><table style="float: left;" align="center"
border="0" width="196" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="5" colspan="3"></td>
<td width="5" colspan="3" rowspan="4"> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td width="5" height="26" bgcolor="#ffffff"> </td>
<td width="84" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="5" colspan="3"></td>
<td width="5" colspan="3" rowspan="4"> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td width="5" height="26" bgcolor="#ffffff"> </td>
<td width="84" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="5" colspan="3"></td>
<td width="5" colspan="3" rowspan="4"> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td width="5" height="26" bgcolor="#ffffff"> </td>
<td width="84" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<p> </p>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="5" colspan="3"></td>
<td width="5" colspan="3" rowspan="4"> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td width="5" height="26" bgcolor="#ffffff"> </td>
<td width="84" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="5" colspan="3"></td>
<td width="5" colspan="3" rowspan="4"> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td width="5" height="26" bgcolor="#ffffff"> </td>
<td width="84" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="5" colspan="3"></td>
<td width="5" colspan="3" rowspan="4"> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td width="5" height="26" bgcolor="#ffffff"> </td>
<td width="84" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<p> </p>
<p> </p></td>
</tr>
</tbody>
</table>

you can get around this outlook bug by putting your content in completely separate tables like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" style="font-size:36px;">SOME HEADER CONTENT TO GO IN HERE</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="593"><table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84" height="26" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84" height="26" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84" height="26" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="593"><table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84" height="26" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84" height="26" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<table style="float: left;" align="center" border="0" width="196"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#ffffff"><span
style="font-size: 10px; font-family: Helvetica, Arial, sans-serif;"><img
src="entertainment.gif" alt="" width="38" height="38"
align="left" /> <strong>Magazine
Subsription</strong><br> Some awesome stuff</span></td>
</tr>
<tr>
<td bgcolor="#ffffff"><a target="_blank"
href="LINK"><img style="display: block;" src="IMAGE"
alt="Parrot Rolling Spider" border="0" height="190" width="190"></a></td>
</tr>
<tr>
<td bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84" height="26" bgcolor="#ffffff"><span
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif;">12,000
Points</span></td>
<td width="101" bgcolor="#ffffff"><table align=""
width="101" height="26" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" width="300" height="10"
bgcolor="#8ec043" style="color: #ffffff;">
<td valign="middle"
style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"
width="83" height="24"><div align="center">
<a href="LINK"
style="font-size: 10px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height: 10px; width: 100%; display: inline-block"><span
style="color: #FFFFFF">Spend Points</span></a>
</div></td>
<td width="16" valign="middle"><a href="LINK"><img
src="http://www.maximiles.co.uk/images/dynamics/uk/email_images/ftpIMAGES2014/maximile-email-elements2014/arrow.gif"
alt="" width="12" height="16" align="left" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" style="font-size:36px;">FOOTER<br />
Ts&Cs to go here as well</td>
</tr>
</table>
</body>
</html>
Also, avoid rowspan and colspan - use nested tables instead. I have amended this in the code above

Related

Hide or delete list tag when empty

I'm using PowerShell to import info from a csv file and email the below html using Net.Mail.MailMessage. The email work with no problem but what I'm trying to do is for $Equip1-5 is to have the line deleted or hidden when the variable is empty. I'm not sure if it can be done within the html code or i need to do it on the PowerShell side.
pic of list
<p></p>
<p></p>
<p>The Network and Email Account for $($User.FirstN) $($User.LastN) has been created.</p>
<table bgcolor="#EAEAEA" border="0" cellpadding="1" cellspacing="0" width="99%">
<tbody>
<tr>
<td>
<table bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Type of User</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.UserT)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Request Type</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.RqstT)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Department</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.Depart)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Job Title</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.Title)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>User's Name</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.FirstN) $($User.LastN)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Username </strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($Account)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Temporary Passwords (Active Directory, GMail)</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($password)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong> Email</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($Account)#$($Relam)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>User's Alternate Email Address (Non-Adelphi)</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.AltEmail)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>AU ID</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.AUID)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Building and Room Number</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.Office)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Description of additional Facilities needs</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">None</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Start Date</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.StrtDt)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Is SAAS Access Required?</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.SAASAcc)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Whose account should the SAAS account mimic?</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.SAASmmc)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Technology Equipment</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">New Technology is Required (computer, phone, printer, etc)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Please Select Equipment Needed</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td>
<ul class="bulleted" style="font-family: sans-serif; font-size: 12px;">
<li>$($Equip1)</li>
<li>$($Equip2)</li>
<li>$($Equip3)</li>
<li>$($Equip4)</li>
<li>$($Equip5)</li>
</ul>
</td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Add Info</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.AddInfo)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Name of Requester</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.Rqstr)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Requester's Email Address</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.RqstrEmail)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Name of Authorizing Manager</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.AuthMn)</span></td>
</tr>
<tr bgcolor="#EAF2FA">
<td colspan="2"><span style="font-family: sans-serif; font-size: 12px;"><strong>Authorizing Manager's Email Address</strong></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20"> </td>
<td><span style="font-family: sans-serif; font-size: 12px;">$($User.AuthMnEmail)</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p></p>

Print page borders on a multi page output using wkhtmlltopdf

I have a requirement where I have a header html, Content HTML , and Footer HTML. in css I have put border as 1px solid black for the body. It prints fine for all pages except last page where the content html ends in middle of the page and the borders are not connected to the footer. Please have a look at screenshot attached. The yellow highlighted border is what I am looking for. Please note that the number of rows in content body are dynamic and can change
I had to remove some rows from the html because of character limitation.
wkhtmltopdf version : 12.6
OS : Windows 10
<!DOCTYPE HTML>
<html >
<head><style type="text/css">
body {
font-family:Times New Roman;
position: relative;
padding: 5px;
border: 1px solid black;
height: 350px;
}
.tableArray1 {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="tableArray1" style="font-size:12px;">
<tr>
<td colspan="3" align="center" border="0px" style="vertical-align:top;border-style: hidden;"><b>DOC TYPE</b></td>
</tr>
<tr>
<td align="left" width="18%" border="0" style="padding:5px;border-left-style: hidden;border-right-style: hidden;"><img width="100%" src="data:image/jpeg;base64,"></img></td>
<td width="50%" height="40" align="center" valign="top" style="border-left-style: hidden;border-right-style: hidden;">
<div>Header Goes Here</div>
<div>Header Goes Here</div>
<div>Header Goes Here</div>Header Goes Here<br></br><div width="50%" align="left" style="font-size:11px;padding-left: 6px;vertical-align:bottom;border-right-width:0px"><b>IRN :
</b></div>
</td>
<td align="right" width="32%" style="border-left-style: hidden;border-right-style: hidden;"/>
</tr>
<tr>
<td align="left" width="18%" border="0" style="padding:5px;border-left-style: hidden;border-right-style: hidden;"><img width="100%" src="data:image/jpeg;base64,"></img></td>
<td width="50%" height="40" align="center" valign="top" style="border-left-style: hidden;border-right-style: hidden;">
<div>Header Goes Here</div>
<div>Header Goes Here</div>
<div>Header Goes Here</div>Header Goes Here<br></br><div width="50%" align="left" style="font-size:11px;padding-left: 6px;vertical-align:bottom;border-right-width:0px"><b>IRN :
</b></div>
</td>
<td align="right" width="32%" style="border-left-style: hidden;border-right-style: hidden;"/>
</tr>
<tr>
<td align="left" width="18%" border="0" style="padding:5px;border-left-style: hidden;border-right-style: hidden;"><img width="100%" src="data:image/jpeg;base64,"></img></td>
<td width="50%" height="40" align="center" valign="top" style="border-left-style: hidden;border-right-style: hidden;">
<div>Header Goes Here</div>
<div>Header Goes Here</div>
<div>Header Goes Here</div>Header Goes Here<br></br><div width="50%" align="left" style="font-size:11px;padding-left: 6px;vertical-align:bottom;border-right-width:0px"><b>IRN :
</b></div>
</td>
<td align="right" width="32%" style="border-left-style: hidden;border-right-style: hidden;"/>
</tr>
</table>
</body>
</html>
<!DOCTYPE HTML>
<html >
<head><style type="text/css">
body {
font-family:Times New Roman;
border: 1px solid black;
}
tr { page-break-inside: avoid; }
td { page-break-inside: avoid; }
.tableArray1 {
border: 1px solid black;
border-collapse: collapse;
}
.page_break{
page-break-after: always;
}
</style></head>
<body>
<table border="1" cellspacing="0" cellpadding="0" class="tableArray1" style="font-size:11px;">
<tr height="20">
<td width="2%" rowspan="2" align="center"><span style="display:block;">S.</span><span style="display:block;">No.</span></td>
<td width="20%" rowspan="2" align="center">Description of Goods</td>
<td width="7%" rowspan="2" align="center">HSN Code
<div>(GST)</div>
</td>
<td width="6%" rowspan="2" align="center">Currency</td>
<td width="5%" rowspan="2" align="center">QTY</td>
<td width="5%" rowspan="2" align="center">UOM</td>
<td width="5%" rowspan="2" align="center">Rate<br>(INR)</br></td>
<td width="10%" rowspan="2" align="center">Taxable Value (INR)</td>
<td width="10%" colspan="2" align="center">CGST</td>
<td width="10%" colspan="2" align="center">SGST</td>
<td width="10%" colspan="2" align="center">IGST</td>
<td width="10%" rowspan="2" align="center">Total</td>
</tr>
<tr height="20">
<td width="5%" align="center">Rate</td>
<td width="5%" align="center">Amount</td>
<td width="5%" align="center">Rate</td>
<td width="5%" align="center">Amount</td>
<td width="5%" align="center">Rate</td>
<td width="5%" align="center">Amount</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">1</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">2</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">3</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">4</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">5</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">6</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">7</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">8</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">9</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">10</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">11</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
<tr height="25px">
<td width="2%" align="center" style="font-size:8px;">12</td>
<td width="20%" align="center">Rice</td>
<td width="7%" align="center">30049099</td>
<td width="6%" align="center"></td>
<td width="5%" align="right">100.34</td>
<td width="5%" valign="center" align="center">BAG</td>
<td width="5%" align="right">99.54</td>
<td width="10%" align="right">9978.84</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right">0.0</td>
<td width="5%" align="right" style="font-size:9px;">0.0</td>
<td width="5%" align="right"></td>
<td width="5%" align="right" style="font-size:9px;">1196.0</td>
<td width="10%" align="right">12896.24</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE HTML>
<html >
<head><style type="text/css">
body {
font-family:Times New Roman;
border: 0px solid black;
height: 100px;
}
#watermark {
color: #d0d0d0;
font-size: 130px;
-webkit-transform: rotate(-40deg);
-moz-transform: rotate(-40deg);
position: absolute;
width: 50%;
height: 50%;
margin: 0;
z-index: -1;
left: 190px;
top: 400px;
}
tr { page-break-inside: avoid; }
td { page-break-inside: avoid; }
.tableArray1 {
border: 1px solid black;
border-collapse: collapse;
}
.page_break{
page-break-after: always;
}
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableArray1" style="font-size:12px;">
<tr>
<td width="60%" valign="top" style="padding-left:5px;font-size:12px;">
Beneficiary Bank Details
<div></div>
</td>
<td align="center" width="40%"><b>Footer Footer.</b><br></br><br></br><b>Authorised Signatory</b></td>
</tr>
</table>
</body>
</html>
check the third page border for body you written as 0px try with changing to 1px
<!DOCTYPE HTML>
<html >
<head><style type="text/css">
body {
font-family:Times New Roman;
border: 1px solid black;
height: 100px;
}
#watermark {
color: #d0d0d0;
font-size: 130px;
-webkit-transform: rotate(-40deg);
-moz-transform: rotate(-40deg);
position: absolute;
width: 50%;
height: 50%;
margin: 0;
z-index: -1;
left: 190px;
top: 400px;
}
tr { page-break-inside: avoid; }
td { page-break-inside: avoid; }
.tableArray1 {
border: 1px solid black;
border-collapse: collapse;
}
.page_break{
page-break-after: always;
}
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableArray1" style="font-size:12px;">
<tr>
<td width="60%" valign="top" style="padding-left:5px;font-size:12px;">
Beneficiary Bank Details
<div></div>
</td>
<td align="center" width="40%"><b>Footer Footer.</b><br></br><br></br><b>Authorised Signatory</b></td>
</tr>
</table>
</body>
</html>
You can use ::after and ::before for the body and fix the height of these psuedo elements as much you require, try this attached css for the top HTML file.
body{font-family:Times New Roman;border:1px solid black;position:relative;}body:before{content:"";position:absolute;top:100%;left:-1px;height:150px;border:1px solid black;}body:after{content:"";position:absolute;top:100%;right:-1px;height:150px;border:1px solid black;}tr{page-break-inside:avoid;}td{page-break-inside:avoid;}.tableArray1{border:1px solid black;border-collapse:collapse;}.page_break{page-break-after:always;}

Issue HTML email showing different on different platforms

I am making a HTML email. Now in browser it is showing fine and how it should be. The problem appears when I sent it and check on different platforms.
How ever, in the email from transip where I host my website it shows as it should.
I got a jsfiddle here
how it should be:
Gmail:
Windows 10 mail:
Here is all the code that I paste in the email.
<!DOCTYPE html>
<html>
<head>
<!-- NAME: 1:2 COLUMN - FULL WIDTH -->
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>*|MC:SUBJECT|*</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<script src="https://use.typekit.net/pyo8wnx.js">
</script>
<script>
try{Typekit.load({ async: true });}catch(e){}
</script>
</head>
<body>
<center>
<table align="center" border="0" cellpadding="0" cellspacing="0" id="bodyTable" width="100%">
<tr>
<td align="center" id="bodyCell" valign="top">
<!-- BEGIN TEMPLATE // -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr class="f1f1f1">
<td align="center" id="templateHeader" valign="top"><!--[if gte mso 9]>
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
<tr>
<td align="center" valign="top" width="600" style="width:600px;">
<![endif]--></td>
</tr>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="templateContainer" width="100%">
<tr>
<td class="headerContainer" valign="top">
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 9px; padding-left: 9px; padding-top: 0; padding-bottom: 0; text-align:center;" valign="top"><img align="center" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/d02fceaa-c0cb-45a3-a6d5-5f56aaa98b6b.jpg" style="max-width:1360px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="564"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table><!--[if gte mso 9]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td align="center" id="templateBody" valign="top">
<!--[if gte mso 9]>
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
<tr>
<td align="center" valign="top" width="600" style="width:600px;">
<![endif]-->
<table align="center" border="0" cellpadding="0" cellspacing="0" class="templateContainer" width="100%">
<tr>
<td class="bodyContainer" valign="top">
<table border="0" cellpadding="0" cellspacing="0" class="mcnTextBlock" style="min-width:100%;" width="100%">
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnTextBlockInner" style="padding-top:0px;" valign="top">
<!--[if mso]>
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
<tr>
<![endif]-->
<!--[if mso]>
<td valign="top" width="600" style="width:600px;">
<![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnTextContentContainer templateContainerf1-shadow" style="max-width:100%; min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 9px 18px 9px; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;" valign="top">
<h1><span style="font-size:18px">Beste vrienden van Funda</span></h1>
<p style="font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;"><span style="font-size:13px">Als jullie parners in print, feliciteren wij jullie met het <strong>15 jarig</strong> bestaan. Bij een verjaardag hoort natuurlijk <strong>een kado! </strong><br>
<br>
Met de code: <strong>funda15jaar</strong>. Krijg je korting op diverse producten. Deze producten zijn hieronder te vinden.<br>
<br>
Op nog vele mooie jaren.<br>
<br>
Veel liefs,</span><br>
<img data-file-id="29567" height="55" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/42fafc76-b54e-4729-a6cf-c46d289bb936.png" style="border: 0px ; width: 200px; height: 55px; margin: 0px;" width="200"></p>
</td>
</tr>
</tbody>
</table><!--[if mso]>
</td>
<![endif]-->
<table align="center" border="0" cellpadding="0" cellspacing="0" class="templateContainer" width="100%">
<tr></tr>
<tbody class="mcnDividerBlockOuter">
<tr>
<td class="mcnDividerBlockInner" style="min-width: 100%; padding: 9px 18px;">
<table border="0" cellpadding="0" cellspacing="0" class="mcnDividerContent" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td><span></span></td>
</tr>
</tbody>
</table><!--[if mso]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnTextContentContainer" style="max-width:100%; min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;" valign="top">
<h1 class="null"><strong style="color: #054973;font-size: 13px;"><span style="font-size:18px">KORTING OP</span></strong></h1>
<h1 class="null"><span style="color:#054973"><strong>JOUW FAVORIETEN</strong></span></h1>
</td>
</tr>
</tbody>
</table><!--[if mso]>
</td>
<![endif]-->
<!--[if mso]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnTextBlock" style="min-width:100%;" width="100%">
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnTextBlockInner" style="padding-top:9px;" valign="top">
<!--[if mso]>
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
<tr>
<![endif]-->
<!--[if mso]>
<td valign="top" width="600" style="width:600px;">
<![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnTextContentContainer" style="max-width:100%; min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;" valign="top">
<h1 class="null"><span style="font-family:open sans,helvetica neue,helvetica,arial,sans-serif"><span style="font-size:13px">We geven korting op je favorieten / meest bestelde producten.</span></span></h1>
</td>
</tr>
</tbody>
</table><!--[if mso]>
</td>
<![endif]-->
<!--[if mso]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="padding:0px" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 0px; padding-left: 0px; padding-top: 0; padding-bottom: 0;" valign="top"><img align="right" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/24c856f7-7794-49cd-aae2-380d93df56fd.png" style="max-width:476px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="476"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="padding:0px" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 0px; padding-left: 0px; padding-top: 0; padding-bottom: 0;" valign="top"><img align="left" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/597a9fb1-baad-40bf-adec-c637c4c6c1dd.png" style="max-width:476px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="476"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="padding:0px" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 0px; padding-left: 0px; padding-top: 0; padding-bottom: 0;" valign="top"><img align="right" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/1d0bc62d-5f79-47d2-943c-4ada62b747f7.png" style="max-width:476px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="476"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnDividerBlock" style="min-width:100%;" width="100%">
<tbody class="mcnDividerBlockOuter">
<tr>
<td class="mcnDividerBlockInner" style="min-width: 100%; padding: 9px 18px;">
<table border="0" cellpadding="0" cellspacing="0" class="mcnDividerContent" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td><span></span></td>
</tr>
</tbody>
</table><!--
<td class="mcnDividerBlockInner" style="padding: 18px;">
<hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" />
-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnTextBlock templateContainerf1" style="min-width:100%;" width="100%">
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnTextBlockInner" style="padding-top:9px;" valign="top">
<!--[if mso]>
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
<tr>
<![endif]-->
<!--[if mso]>
<td valign="top" width="600" style="width:600px;">
<![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnTextContentContainer" style="max-width:100%; min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;" valign="top">
<h1 class="null"><strong style="color: #054973;font-size: 13px;"><span style="font-size:18px">PRODUCTEN</span></strong></h1>
<h1 class="null"><span style="color:#054973"><strong>OM TE PROBEREN</strong></span></h1>
</td>
</tr>
</tbody>
</table><!--[if mso]>
</td>
<![endif]-->
<!--[if mso]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnTextBlock templateContainerf1" style="min-width:100%;" width="100%">
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnTextBlockInner" style="padding-top:9px;" valign="top">
<!--[if mso]>
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
<tr>
<![endif]-->
<!--[if mso]>
<td valign="top" width="600" style="width:600px;">
<![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnTextContentContainer" style="max-width:100%; min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;" valign="top">
<h1 class="null" style="text-align: justify;"><span style="font-family:open sans,helvetica neue,helvetica,arial,sans-serif"><span style="font-size:13px">We geven ook korting op een aantal producten die je nooit heb besteld. Zo kan je deze ook een keer proberen. </span></span></h1>
</td>
</tr>
</tbody>
</table><!--[if mso]>
</td>
<![endif]-->
<!--[if mso]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock templateContainerf1" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="padding:0px" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 0px; padding-left: 0px; padding-top: 0; padding-bottom: 0;" valign="top"><img align="right" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/1d228701-15a0-48dc-aca9-e1be72269baa.png" style="max-width:479px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="479"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock templateContainerf1" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="padding:0px" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 0px; padding-left: 0px; padding-top: 0; padding-bottom: 0;" valign="top"><img align="left" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/a2766025-a96d-4467-9c6d-b65c6eca5292.png" style="max-width:479px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="479"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock templateContainerf1" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="padding:0px" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 0px; padding-left: 0px; padding-top: 0; padding-bottom: 0;" valign="top"><img align="right" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/b03d1c00-b399-4882-b3ef-32fe5e0c354d.png" style="max-width:479px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="479"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnDividerBlock templateContainerf1-botshadow" style="min-width:100%;" width="100%">
<tbody class="mcnDividerBlockOuter">
<tr>
<td class="mcnDividerBlockInner" style="min-width: 100%; padding: 9px 18px;">
<table border="0" cellpadding="0" cellspacing="0" class="mcnDividerContent" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td><span></span></td>
</tr>
</tbody>
</table><!--
<td class="mcnDividerBlockInner" style="padding: 18px;">
<hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" />
-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnDividerBlock templateContainerf1" style="min-width:100%;" width="100%">
<tbody class="mcnDividerBlockOuter">
<tr>
<td class="mcnDividerBlockInner" style="min-width: 100%; padding: 9px 18px;">
<table border="0" cellpadding="0" cellspacing="0" class="mcnDividerContent" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td><span></span></td>
</tr>
</tbody>
</table><!--
<td class="mcnDividerBlockInner" style="padding: 18px;">
<hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" />
-->
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="mcnImageBlock" style="min-width:100%;" width="100%">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="padding:9px" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnImageContentContainer" style="min-width:100%;" width="100%">
<tbody>
<tr>
<td class="mcnImageContent" style="padding-right: 9px; padding-left: 9px; padding-top: 0; padding-bottom: 0; text-align:center;" valign="top"><img align="center" alt="" class="mcnImage" src="https://gallery.mailchimp.com/953c1f15f29edc16163af3d3e/images/0d3b67a9-6e0b-4227-8443-b3a820aee32f.png" style="max-width:250px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" width="250"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table><!--[if gte mso 9]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td align="center" id="templateColumns" valign="top">
<table border="0" cellpadding="0" cellspacing="0" class="templateContainer" width="100%">
<tr>
<td valign="top">
<!--[if gte mso 9]>
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
<tr>
<td align="center" valign="top" width="300" style="width:300px;">
<![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" class="columnWrapper" width="300">
<tr>
<td class="columnContainer" valign="top"></td>
</tr>
</table><!--[if gte mso 9]>
</td>
<td align="center" valign="top" width="300" style="width:300px;">
<![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" class="columnWrapper" width="300">
<tr>
<td class="columnContainer" valign="top"></td>
</tr>
</table><!--[if gte mso 9]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" id="templateFooter" valign="top">
<!--[if gte mso 9]>
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
<tr>
<td align="center" valign="top" width="600" style="width:600px;">
<![endif]-->
<table align="center" border="0" cellpadding="0" cellspacing="0" class="templateContainer" width="100%">
<tr>
<td class="footerContainer" valign="top"></td>
</tr>
</table><!--[if gte mso 9]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
</table><!-- // END TEMPLATE -->
</center>
</body>
</html>
No css due to character limit.

Mailer Displays gaps on left and right of the images

I am developing a mailer so on my outlook it looks fine but on my Gmail it shows Spacing on the left and right of the image. I used style="display:block" which only removed the spacing at the bottom. How do I remove on the left and on the right?
Here is my code:
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td><table cellpadding="0" cellspacing="0" border="0" align="center" width="695px">
<tr>
<td align="center"><span style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#677880;">View on the web</span></td>
</tr>
<tr>
<td height="10px"><img src="/images/spacer.gif" height="10" width="1" style="display:block;" border="0" alt="Spacer"/></td>
</tr>
<tr>
<td valign="top" border="0" align="right"><img src="/images/top.jpg" width="695" height="52" border="0" style="display:block;" ></td>
</tr>
<tr>
<td><table cellpadding="0" cellspacing="0" border="0" width="695px">
<tr>
<td width="461px" border="0" valign="top" align="right"><img src="/images/father-and-husband.jpg" width="461" height="300" style="display:block;" border="0" ></td>
<td valign="top" width="234px" border="0"><table cellpadding="0" cellspacing="0" border="0" width="234px">
<tr>
<td valign="top" border="0"><img src="/images/life-2-lefe-logo.jpg" width="234" height="131" style="display:block" border="0" alt="Click here to visit our website" title="Click here to visit our website" align="left"></td>
</tr>
<tr>
<td valign="top" border="0"><img src="/images/botton-logo.jpg" width="234" height="169" style="display:block" border="0" align="left"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table cellpadding="0" cellspacing="0" border="0" width="695px">
<tr>
<td border="0" valign="top" align="right"><img src="/images/donating-a-kidney.jpg" width="461" height="290" style="display:block;margin:0" border="0" alt="Click here to email us" title="Click here to email us"></td>
<td border="0" valign="top"><img src="/images/right-email.jpg" width="234" height="290" style="display:block" border="0" align="left"></td>
</tr>
</table></td>
</tr>
<tr>
<td border="0" valign="top" align="right"><img src="/images/bottom.jpg" width="695" height="341" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center" valign="center" height="30" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#677880;">If you do not wish to recieve any further email notifications, <a style="color:#ec1c23;" href="{{components.unsubscribe}}" target="_blank">click here to unsubscribe.</a></td>
</tr>
</table></td>
</tr>
</table>

Why is there space under my image? [duplicate]

This question already has answers here:
Image inside div has extra space below the image
(10 answers)
Closed 8 years ago.
Notice in the following screenshot, there is a white space under image:
I don't understand why there is this gap, how do I remove it. The page is live at http://goo.gl/Kf8FV5
Markup:
<section id="pricing-table">
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="10"> </td>
<td width="760" height="10" colspan="4" align="left" valign="top"><img src="images/membership-plans-design_03.png" alt=""></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" class="featurehead">Heading</td>
<td colspan="4" class="featureset"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
<td width="190" height="42" align="center" valign="middle">Feature</td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
<td><img src="images/membership-plans-design_08.png" alt=""></td>
<td><img src="images/membership-plans-design_09.png" alt=""></td>
<td><img src="images/membership-plans-design_10.png" alt=""></td>
<td><img src="images/membership-plans-design_11.png" alt=""></td>
</tr>
</table>
</section>
Css:
#pricing-table { margin: 0 auto; width: 950px; text-align: center;}
.featureset {
background-image: url(images/membership-plans-design_05.png);
background-repeat: no-repeat;
height: 42px;
margin: 0;
padding: 0;
color:#FFF;
}
.featurehead {
background-color:#CCC;
font-weight: bold;
border-bottom: 1px solid grey;
}
Any help is highly appreciated. Thanks in advance.
Images are inline elements, so they have a white space after them (like a <span> element). To remove that white space, change them to block elements like this :
img{
display:block;
}
Change <img src="images/membership-plans-design_03.png" alt=""> to
<img src="images/membership-plans-design_03.png" alt="" style="display: block;">
And to be more precise images are an inline-block element.
Add this to your CSS,
section#pricing-table td img{
display: block;
}
<img> is an inline-block element by default. You can remove the white space around it by setting it's parent's font-size to zero, or by changing it's display property.
JSFiddle Demo