Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

image border not displaying html email

Tags:

html

css

I am trying to send an html email with an image border as

<p align="center">
    <img src="images/pic1.jpg" width="443" height="148" align="middle" 
         style="border: 1px solid grey; padding:10px;" border="1"/>
</p>

However, the border just does not display in any of the email clients. How can i fix this?

like image 929
user1212 Avatar asked Dec 27 '22 20:12

user1212


1 Answers

Main problem is Microsoft Outlook, enclosing the image in a table seems to do the job. It's a hassle to enclose every image, but dats em breaks:

<p align="center">
    <table><tr><td style="border: 1px solid grey;">
    <img src="images/pic1.jpg" width="443" height="148" align="middle" 
         style="padding:10px;"/>
    </td></tr></table>
</p>
like image 187
Clive Paterson Avatar answered Jan 22 '23 19:01

Clive Paterson