@Ankario try to avoid padding or margin if possible around those sections. Instead you can give height
and make that section vertically aligned using valign
.
For example, I was having the same issue whenever I download an image.
What I did was I just removed padding
from the <td>
and gave height
instead and to make it vertically center used valign
. You can compare the code below.
Old Code:
<td style="background: #4b7b8b; padding: 20px; color: #fff; font-size: 30px; font-weight: 600; text-transform: uppercase;">
Updated Code which solved an issue:
<td valign="middle" height="100" style="background: #4b7b8b; color: #fff; font-size: 30px; font-weight: 600; text-transform: uppercase; vertical-align: middle;">
You can always adjust value for height
and valign
as per your need.
Note: This issue occurs in old outlook desktop app. For new version of outlook any code will work.
Hope this is useful information. Happy Coding..!