I have a 1x2 HTML table that will be the heading of an email. The first column contains a linked image, the second a heading.
<table>
<tr>
<td width="50%" style="text-align:left; padding-left:10%;">
<a target="_blank" href="http://www.google.com/">
<img src="img/logo.jpg" alt="Logo"
style="width:30%; height:30%;"
/>
</a>
</td>
<td width="50%" style="text-align:right; padding-right:10%;">
<h2>Order Confirmation</h2>
</td>
</tr>
</table>
As you can see, the image in the left cell is aligned left, and the heading in the right cell is aligned right, each element with 10% space from the edge (padding).
PROBLEM: The dimensions of my image are being distorted! I have the img's width and height both set to 30%, but it's still getting distorted. I'm guessing this has something to do with the table, but I cannot figure it out. Let me know!
ps: I have to use inline styling and tables for this project.