Unable to get HTML formatting to work in GMAIL
11,709
GMail tends to prefer inline styles. As such:
<table style="border: 1px solid black; border-style: collapse;">
<tr style="border: 1px solid black; padding: 10px;">
<td style="border: 1px solid black; padding: 10px;">
</td>
</tr>
</table>
Author by
Charlotte
Updated on June 04, 2022Comments
-
Charlotte almost 2 years
I have a powershell script that sends out an HTML formatted email, the formatting looks perfect in Outlook but does not work in GMAIL, any suggestions? The HTML used is:
#HTML $a = "<style>" $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}" $a = $a + "TH{border-width: 1px;padding: 10px;border-style: solid;border-color: black;}" $a = $a + "TD{border-width: 1px;padding: 10px;border-style: solid;border-color: black;}" $a = $a + "</style>"
Thanks.
-
Mathias almost 10 yearsdon't you mean
border-collapse: collapse
?