Forum Discussion
AnjaliG
7 years agoContributor
srinivaskiranp Can you please share screenshot of alignment issues for better understanding?
For email template, table structure must be used and for styling, always use inline-style and table's attributes like width, height, border, cellpadding, cellspacing, bg-color, bg-image, align etc together.In outlook, Table attributes works perfectly.
e.g: If you want to align the table in center then, code should be as below:
<table class="main inner_table" cellpadding="0" bgcolor="#eee" cellspacing="0" align="center" border="0" style="border-collapse: collapse; margin:0 auto; width:800px; background-color:#eee;" width="800">
<tr>
<td>Column1</td><td>Column2</td>
</tr>
<tr>
<td>Column1</td><td>Column2</td>
</tr>
</table>
Related Content
- 3 years ago