To display text over an image in HTML email, I am looking for a solution since using margin
or position
is not working as required. Below is the code snippet I have tried:
<div style="padding-right:25px;padding-left:20px">
<div style="padding-top:5px;padding-bottom:10px">
<table style="text-align:center;border:1px solid #ddd;border-spacing:0;border-collapse:collapse">
<tbody><tr>
<td style="text-align:center">
<div style="width: 100%;">
<img src="myimage.png"/>
<div style="margin-top:-280px;font-size: 20px"><b><font face="Calibri">Text</font></b></div>
<div style="font-size:48px;line-height:58px;font-weight:bold;margin-top:40px;"><span><font face="Calibri">abc</font></span></div>
</div>
</td>
</tr></tbody>
</table>
</div>
</div>
Any suggestions on how to achieve this effect? Thank you.