Skip to content

Commit ab9bb5f

Browse files
committed
Attempt to fix template for rendering logos for Outlook/O365
Seems Outlook/O365 couldn't handle our floating images, and nobody pointed it out :) And since using tables for layouts really is a thing still, do that instead and it seems to work now.
1 parent f369409 commit ab9bb5f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

templates/news/mail/pgproject.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
{%block title%}{{news.title}}{%endblock%}
44

55
{%block content%}
6-
<div>
7-
<img style="float: left; width: 50px" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo">
8-
<img style="float: right; width: 50px" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo">
9-
<h1>{{news.title}}</h1>
10-
</div>
6+
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" style="width: 100%;">
7+
<tr>
8+
<td><img style="width: 50px; height: 50px;" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo"></td>
9+
<td style="text-align: center;"><h1>{{news.title}}</h1></td>
10+
<td><img style="width: 50px; height: 50px;" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo"></td>
11+
</tr>
12+
</table>
1113
{{news.content|markdown}}
1214
{%endblock%}
1315

0 commit comments

Comments
 (0)