mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed Outlook not centring content column in member emails
refs https://github.com/TryGhost/Ghost/issues/11756 - we removed the fixed `width: 600px` to fix gmail scaling but that means we need a new way of creating a 600px centre column in Outlook
This commit is contained in:
parent
28b24d2095
commit
ee20efc971
1 changed files with 17 additions and 0 deletions
|
@ -823,6 +823,15 @@ figure blockquote p {
|
|||
<body class="">
|
||||
<span class="preheader">${ post.excerpt ? post.excerpt : `${post.title} – ` }</span>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body" width="100%">
|
||||
|
||||
<!-- Outlook doesn't respect max-width so we need an extra centered table -->
|
||||
<!--[if mso]>
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="600">
|
||||
<![endif]-->
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="container">
|
||||
|
@ -900,6 +909,14 @@ figure blockquote p {
|
|||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
<!--[if mso]>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<![endif]-->
|
||||
|
||||
</table>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Reference in a new issue