Search code examples
htmlcssgmail

background image in a email with a td


Trying to get a background image on the go for a cell of a table so I can display dynamic text over it

I tried :

<td style="background-image:url('bla...

It ain't working? Whats the best way to do this?


Solution

  • You could do a Base64 encode on the image (Base64 Online), and then add the string generated to the css rule. This will also add more space to the email about 33%.