I have been writing HTML emails and a key part of the process is converting my CSS inline. Despite searching for a solution to automatically convert CSS width/height properties into email tags, I have not found one yet.
If there is a tool available that can handle this task, I would greatly appreciate any recommendations on how to achieve this goal efficiently.
For example:
.table_style {width: 100%;}
.image_style img {width: 250px; height: 50px;}
<table class="table_style" border="0" cellpadding="0" cellspacing="0">
<tbody>
<td>
<img class="image_style" alt="" src="/image.jpg" border="0">
</td>
</tbody>
</table>
The desired outcome should be as follows:
<table class="table_style" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<td>
<img class="image_style" width="250" height="50" alt="" src="/image.jpg" border="0">
</td>
</tbody>
</table>
Thank you for any assistance provided!