I am trying to attach some HTML code to an outlook email via python. My question is surrounding the html and outlook. I am trying to use the code below and make two tables that are aligned vertically. When I have the html code by itself it works fine, but when I mail it to outlook the tables are one on top of each other. Any thoughts on why this is happening.
<html>
<head>
<title>tester</title>
</head>
<body>
<table>
<table style="border:1px solid black;border-collapse:collapse;float:left;margin:10px">
<th style="border:1px solid black;padding:3px" bgcolor="#DDDDDD" align="left">First</th>
<th style="border:1px solid black;padding:3px" bgcolor="#DDDDDD" align="left">last</th>
<tr bgcolor="#FFFFFF" style ="height:23px;">
<td style="border:1px solid black;padding:3px" align="left"><code> </code></td>
<td style="border:1px solid black;padding:3px" align="right"><code> </code></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="border:1px solid black;padding:3px" align="left"><code>Bob</code></td>
<td style="border:1px solid black;padding:3px" align="left"><code>Smith</code></td>
</tr>
</table>
<table>
<table style="border:1px solid black;border-collapse:collapse;float:left;margin:10px">
<th style="border:1px solid black;padding:3px" bgcolor="#DDDDDD" align="left">First</th>
<th style="border:1px solid black;padding:3px" bgcolor="#DDDDDD" align="left">last</th>
<tr bgcolor="#FFFFFF" style ="height:23px;">
<td style="border:1px solid black;padding:3px" align="left"><code> </code></td>
<td style="border:1px solid black;padding:3px" align="right"><code> </code></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="border:1px solid black;padding:3px" align="left"><code>Stevev</code></td>
<td style="border:1px solid black;padding:3px" align="left"><code>Clarck</code></td>
</tr>
</table>
</body>
</html>