I have a code that is currently structured using DIV elements. However, I've encountered alignment issues when rendering it in EMAIL clients. To address this problem, I am looking to convert the DIV structure to TABLE format.
Below is the original code snippet:
<div class="layoutContainer" style="width: 880px; height: 700px; background: rgb(255, 255, 255);">
<div class="contentInside" style="transform: translate(0px, 0px); width: 260px; left: 0px; top: 0px;">
test content1
</div>
<div class="contentInside" style="transform: translate(-375px, 0px); width: 394px; left: 399px; top: 0px;">
test content2
</div>
</div>
The desired conversion of the code is shown below:
<table class="layoutContainer" style="width: 880px; height: 700px; background: rgb(255, 255, 255);">
<tr>
<td>
<table class="contentInside" style="transform: translate(0px, 0px); width: 260px; left: 0px; top: 0px;">
<tr>
<td>
test content1
</td>
</tr>
</table>
<table class="contentInside" style="transform: translate(-375px, 0px); width: 394px; left: 399px; top: 0px;">
<tr>
<td>
test content2
</td>
</tr>
</table>
</td>
</tr>
</table>
If anyone can assist me with this conversion, I would greatly appreciate it.