Spacing seems like a very simple task but to do it accurately in email can get a little tricky at times.
Your first options should always be using
padding, support for margin and support for padding is pretty good across emails clients with a few small issues in Outlook.
If you are still having issue then you can try these methods.
<i style="letter-spacing:50px;mso-font-width:-100%;display:inline-block;width:50px"> </i>
To get it working in MSO Outlooks we are using
letter-spacing to create the size of this spacer. And for
letter-spacing to work we need a letter for it to work off. In this case we are using a “Hair Space”
. This is the thinest character I found so it only adds a very tiny amount of space onto the 50px specified in the
letter-spacing. To remove that spacing from MSO Outlooks we can use
For HTML email clients we can add
<div style="line-height:50px; height:50px;"> </div>
Again we need to insert a character, this time to have something for the
line-height to respond to and stop the
<div> from collapsing, I’ve used
again for consistency with the horizontal spacer, but other characters should work too. Gmail app on Android adds a little extra space here so setting a fixed
height the same as the
line-height brings that in line.
N.B If the
line-height is less than the current
font-size, then you’ll also need to add a
<div style="line-height:8px; height:8px; font-size:8px"> </div>
Horizontal & Vertical Spacer
<i style="letter-spacing:50px;mso-font-width:-100%;display:inline-block;width:50px; font-size:0px;mso-text-raise:50px;height:50px;"> </i>
This is mostly the same as the horizontal spacer but we’re adding
mso-text-raise to set the hight for Outlook, and using
font-size:0px to remove the additional hight we would get from having the
. And using
height for all the HTML email clients.