

On the subject of electronic mail growth there’s one certainty that each one electronic mail builders are accustomed to; Outlook will trigger you complications.
On this case we’re wanting particularly at one of the notorious bugs with Outlook; the seemingly random white traces that may get added to your electronic mail. The reason for many a headache and annoyed Google seek for electronic mail builders and entrepreneurs alike.
The inconvenient reality is that there isn’t any magic wand to wave and make these traces disappear, however there are steps we will take to reduce the impression of this bug in your meticulously crafted emails.
Right here we’ll take a dive into what causes them to seem and the way we will quash these pesky traces.
Within the Trenches: A Dev’s Battle with the 1px Line Bug
I first encountered the road bug while engaged on an E-mail on Acid Publication. Design was accredited, the code was completed and we have been operating closing QA checks. After testing on my reside units and the E-mail on Acid testing platform, each check appeared good to me and I handed it off for the ultimate set of checks. That’s after I obtained the Slack ping:
“Hey Alex, what are these traces in Outlook?”

I used to be perplexed, checked my checks and every thing appeared a-okay. It was solely after re-testing the identical code thrice that I might replicate the problem. That’s the place the complications started. “Must be a easy repair,” was my first thought. I shuffled just a few background colours and figured that’d be the tip of it. My new checks appeared good however after just a few re-tests the problem endured.
And it has been a persistent rendering points for electronic mail builders all over the place.
So, why do white traces seem in Outlook?
Regardless of Microsoft being totally conscious of this head scratching bug no official phrase has come within the years it’s been plaguing the e-mail growth group. It tends to creep up on Home windows desktop variations of Outlook, however the white traces will also be an issue for Outlook 365.
Though we will’t ensure, the main principle is that it comes from the pixel to level conversion that Outlook does, when a line-height, peak or font-size is transformed from px to pt and finally ends up as a decimal, the leftover decimal level is added as an unsightly white line.
6 strategies for fixing white traces in Outlook emails
The pliability to create emails in a various number of constructions and codecs is a boon for builders, granting us the freedom to code in response to our preferences.
Nevertheless, this versatility comes with the inherent problem of navigating by means of trial and error in the case of resolving bugs just like the one at hand.
In case you’re experiencing these dreaded white traces, chances are you’ll have to strive just a few of the fixes under to do away with them in your emails.
1. Adjusting Heights, Line-heights and Font Sizes
That is the primary repair that anybody fighting these traces needs to be adjusting your heights, line-heights and font-sizes.
Due to the aforementioned conversion and decimal drawback, you’ll need to set all of those to even numbers. Even higher if they’re divisible by 4. So utilizing font-sizes of 16 or 20 will typically be safer than 18, for instance.
Just remember to’re altering these all over the place, not simply the issue part, you don’t need to repair the traces in a single space of your electronic mail simply to have them crop up once more later.
2. Including Outlook-specific Ghost Breaks
If altering your heights and font sizes doesn’t do the trick, you’ll be able to strive including Outlook-specific ghost breaks into the issue sections to easy out the heights.
Very similar to ghost tables, the ghost break is a strategy to power a line break that’s just for the issue shoppers.
3. Utilizing Microsoft-Particular Code within the Head
Though Microsoft-specific code (MSO) can get fairly difficult, this snippet of code is pretty straight ahead.
We’re telling the shopper, on this case Outlook, that we need to collapse all of the borders within the electronic mail to zero. You’ll need to add this to your Head part. Despite the fact that the default border worth is already 0, this may nonetheless generally clear up the problem – weird!
It’s price noting that it’s best to make sure to check after attempting this code, relying on how your electronic mail is structured it may have an antagonistic impact in your electronic mail rendering in Outlook.
That being stated, I’ve used this just a few occasions when the opposite fixes haven’t alleviated my white line complications.
4. Utilizing Non-Breaking Areas
Some electronic mail builders have reported that the problem is right down to Outlook changing white area, quite than uneven heights.
The prompt repair for that is to incorporate a non-breaking area ( This can, in fact, add some further white area under your copy, so when attempting this repair be sure you’re conscious of the way it’ll impression your designs. The white traces that Outlook provides inherit the colour from the There’s no want to vary the background shade of shoppers that render the e-mail accurately. Merely add this code to the
) earlier than you shut your desk cell ().
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim advert minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
5. Overlaying up with Background Colours