Monday, December 4, 2023
HomeEmail MarketingLearn how to Code HTML Emails that Look Good in Outlook.com

Learn how to Code HTML Emails that Look Good in Outlook.com


Coding emails for Outlook.com

This submit was up to date on January 29, 2019. It was initially revealed in November 2013 and up to date in April 2018.

Since Microsoft migrated all of their customers from the outdated Hotmail platform, Outlook.com has grown by leaps and bounds. Regardless of the facelift, Hotmail and Outlook.com are virtually similar underneath the hood and this tough consumer remains to be giving everyone a run for his or her cash.

Difficult purchasers like Outlook are one of the vital necessary causes to check your e-mail earlier than you hit “ship.” It’s additionally essential to have a look at your e-mail analytics to seek out out what e-mail purchasers your subscribers are utilizing, so you already know what kind of code and workarounds chances are you’ll want. Fortunately, E mail on Acid may help you do each.

If you end up coding for Outlook.com customers, ensure you try our record of must-have ideas under:

  1. Outlook.com provides areas underneath photos
  2. Margins are again
  3. Background photos don’t repeat
  4. Outlook.com and hyperlinks
  5. The “clean e-mail” bug isn’t any extra
  6. Media queries are out (for now)
  7. You’ll be able to goal Outlook.com

1. Outlook.com provides areas underneath photos.

Like many webmail purchasers, chances are you’ll discover house showing underneath your photos in Outlook.com. The repair, which is kind of frequent within the e-mail growth world, is easy. Add the fashion under:

fashion="show:block;"

This code ought to fully take away the floating house under photos.

 

2. Margins do work in Outlook.com.

Years in the past, we believed that margins didn’t work in Outlook.com. We later discovered that wasn’t fairly true; due to a bizarre bug with Outlook.com, you wanted to incorporate a capital letter in your margin declaration.

Nonetheless, with the latest adjustments to Outlook.com, have made to their webmail, we’re now joyful to report that you should utilize margins simply as you’ll anyplace else!

 

3. Background photos don’t repeat.

Excellent news: You should use background photos in Outlook.com. Nonetheless, there are a couple of caveats to think about. First, the repeating background CSS shouldn’t be supported:d

background-repeat: repeat;

This shouldn’t be a serious difficulty for anybody including background photos, however you’ll want to verify your photos are giant sufficient to cowl the world, relatively than repeating the picture. It’s additionally price noting that you just’ll have to declare your background photos utilizing HTML:

background=""

Reasonably than CSS:

fashion="background:();"

Outlook.com will solely assist backgrounds declared with HTML.

 

4. You will need to embody http:// or https:// in your hyperlinks.

The way in which Outlook.com handles hyperlinks is among the most typical and irritating bugs. Every time including a hyperlink in your e-mail, it’s worthwhile to embody http:// or https:// in any other case Outlook.com will show your hyperlink within the e-mail. You’ll additionally want to verify your href tags aren’t empty, as Outlook.com will strip these however depart the content material. See the instance under:

<a href="www.instance.com">Click on me!</a>

Shall be displayed as [example.com]Click on me!

<a href="http://www.instance.com">Click on me!</a>

Shall be displayed as Click on me!

 

5. The Outlook.com “clean e-mail” bug has been fastened.

Beforehand, Outlook.com could be very selective with what it displayed. Aptly named the “clean e-mail bug,” this bug would trigger Outlook.com to point out a clean white e-mail, relatively than your content material. It will do that for those who included any HTML, feedback, or emojis in your <fashion> block. Fortunately, since then Outlook.com has sharpened up fairly a bit, and that is not a difficulty.

 

6. Outlook.com doesn’t acknowledge media queries (for now).

Sadly, Outlook.com won’t respect media queries. Though media queries are primarily used for creating responsive e-mail, they have a number of makes use of in coding for webmail and desktop purchasers, too. Media queries can be utilized for webkit concentrating on, progressive enhancement, and interactive e-mail, to call just some.

There could also be a lightweight on the finish of the tunnel, although. In late 2018, Rémi Parmentier observed that Outlook.com was beginning to check out assist for media queries. We might even see media question assist quickly sufficient.

You’ll be able to try our ideas and methods part for workarounds to assist with this difficulty.

 

7. You’ll be able to goal Outlook.com.

Pioneered by the unimaginable Rémi Parmentier, there’s now a method to particularly goal code for Outlook.com.

Outlook.com will prefix types in their very own particular manner. This implies you could embody a mode that will likely be ignored by all different e-mail purchasers, however prefixed and parsed by Outlook.com. See the instance under:

[owa] .foo { coloration:pink; }

Will change into:

.rps_a113 .x_foo { coloration:pink; }

Outlook.com will acknowledge this code, however it is going to be ignored by different purchasers. Thanks once more to Remi for this beneficial hack.

 

Are we lacking something? Tell us within the feedback under, or hit us up on Fb or Twitter, and we’ll add it to our record!!

 

Don’t guess, check

The updates to this text are an ideal instance of how e-mail purchasers are always altering, which is why it’s necessary to check your e-mail each time; what labored yesterday may not work right this moment. E mail on Acid affords limitless e-mail testing on greater than 70 purchasers and units, so you may make certain your e-mail seems to be good earlier than it hits the inbox. Wish to see for your self? Reap the benefits of our free, seven-day trial.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments