

Within the realm of e-mail advertising, design performs an important position in capturing your viewers’s consideration. Background imagery and graphics can successfully elevate your e-mail campaigns. Past simply trying good, an e-mail background picture helps convey model id and create a cohesive expertise.
On this article, we’ll discover how one can add background photographs into your e-mail designs, enhancing the general design. You will discover methods to make your e-mail background picture responsive and ensure it renders accurately on problematic shoppers like Outlook.
Why use an e-mail background picture?
Including a background picture in your emails can considerably improve their visible enchantment as a result of it opens up much more choices for distinctive designs. There are a number of compelling causes to make use of e-mail background photographs.
- Background photographs seize consideration and contribute to a visually interesting design, making your emails stand out in crowded inboxes.
- Strategic use of background photographs helps reinforce your model id, fostering recognition and belief amongst recipients. They might help your e-mail designs match extra to your total web site/advertising designs so customers get that instantaneous model recognition.
- Through the use of background photographs, you possibly can draw consideration to particular sections of your e-mail, emphasizing key messages or calls to motion.
- Background photographs present a canvas for artistic expression, permitting you to experiment with totally different themes, kinds, and inventive parts to make your emails extra memorable.
Background photographs in e-mail advertising can vary from delicate textures and patterns to extra elaborate visuals, corresponding to product photographs, scenic landscapes, or life-style pictures.
Under you possibly can see an instance of a delicate background texture in comparison with the model with no background picture. Discover the darker blue wave behind the CTA button. The background picture right here helps so as to add a little bit of depth to the design, so it’s not simply a big block of 1 shade of blue. In fact, that strong blue background is best than the choice.


What we have carried out above is code a strong background shade behind the picture that works with the design and exhibits up as a fallback when wanted. For instance, when Outlook blocks photographs the e-mail continues to be readable. If the background picture have been blocked, and the background was white, a whole lot of this e-mail can be unreadable.
Right here is an instance of an e-mail background picture that makes use of extra hanging life-style images so as to add layering to the design:

Though it’s completely wonderful to simply use strong blocks of shade as your background, you may also use bulletproof backgrounds like these so as to add a little bit of aptitude to your designs.
What does “bulletproof” imply?
You’ll usually hear e-mail builders seek advice from sure parts as “bulletproof”, merely an e-mail factor that’s bulletproof retains its performance on any e-mail shopper, whatever the stage of HTML and CSS assist that shopper has.
It’s price noting that bulletproof parts could differ visually throughout shoppers, however the factor’s performance stays bulletproof.
When e-mail builders seek advice from a background as bulletproof meaning it’ll look good on each e-mail shopper. Bulletproof backgrounds make the most of Outlook-specific code to realize background imagery on Outlook and have a pleasant strong fallback shade in order that at any time when photographs aren’t loaded the e-mail nonetheless seems nice.
Electronic mail shopper assist for background photographs
Traditionally, background photographs have had assorted assist throughout e-mail shoppers. In trendy occasions, the overwhelming majority of in style e-mail shoppers will render your background photographs simply wonderful, so long as they’re coded accurately.
The one outlier for this, as at all times, is Outlook. Outlook doesn’t assist background photographs within the conventional sense however through the use of Outlook-specific VML code we’ll have the ability to get background photographs trying nice on Outlook too!
It’s price noting that Home windows 10 Mail won’t render background photographs utilizing both methodology, so be sure you verify your viewers numbers with this shopper earlier than utilizing the strategies under.
How one can code HTML e-mail background photographs
Let’s break down methods to code a background picture in an HTML e-mail. The snippet under is able to use if you wish to simply copy and paste and alter the picture and shade values, however we’ll even be breaking it down and explaining the way it works.
We’ll be referencing this snippet all through this part:
Coding your background photographs
We will break this code down into two sections, the primary is our customary background picture code. That is how we get our background photographs working in all of the non-Outlook e-mail shoppers:
It is a fairly easy part of code, we’re setting the background picture on our TD factor with each CSS and HTML, we’re additionally utilizing CSS to heart it, telling the shopper to not repeat the background and including a fallback shade for any situations the place photographs aren’t loaded.
The a part of the code the place we’re telling the shopper to not repeat it and as an alternative utilizing a background-size property of “cowl” could not at all times suit your design. There are a number of different background-size properties to think about, corresponding to include. Try this breakdown of the background-size property.
Utilizing Vector Markup Language (VML) photographs
Now that we've got our customary background picture working for our non-Outlook e-mail shoppers, let’s begin breaking down the Outlook particular portion of this snippet.
We’re utilizing VML right here to realize our Outlook background photographs. What's VML?
VML (Vector Markup Language) is not a standalone coding language like HTML or JavaScript. As a substitute, it operates throughout the framework of XML, serving as a software to combine 2D vector graphics, corresponding to shapes, into e-mail or net design. These graphics can then be personalized with colours, content material, and different parts in accordance with your preferences.
When organising your e-mail, if you will be utilizing any Microsoft-specific remark or code together with VML, you should guarantee the proper HTML tag is included within the head of the doc, as follows:
Now, so as to add our Outlook background we’re utilizing this conditional code:
The primary part we’re simply focusing on the shoppers we want, on this case our opening tag of <!--[if gte mso 9]>
and shutting tag of
, tells us that the contained code will solely take impact for, or goal, variations of Microsoft Workplace (mso
) larger than or equal to (gte
) model 9, Outlook 2000.
Subsequent, we introduce a picture utilizing the
tag, we’re defining the picture, telling it to fill the house and in addition setting the width and peak.
Please be aware: For VML you’ll want to make use of PTs (factors) slightly than Px (pixels) to outline your sizes, however it’s quite simple to do the conversion; simply multiply the pixel worth by 0.75:
Instance of pixels to factors conversion: 640px x 0.75 = 480pt
Then we’re including our picture supply which is simply the src=”hyperlink”
.
We’re additionally including a rectangle under the picture as proven by the
code, which has the identical measurement dimensions and a fallback shade that matches our non-Outlook particular code. This ensures we've got management over the styling of the e-mail when the background photographs don’t load, for instance if a consumer hasn’t but clicked the “Load photographs on this e-mail” button.
Lastly, you possibly can outline the v:textbox
positioning to indicate you’ll be layering extra content material over the above rectangle (v:rect
) and picture (v:picture
). On this instance, we outlined the place ranging from the highest left at "0,0,0,0"
.
Formatting the VML code
Now, we open the
containing the picture and VML. Be certain to observe it with to cease the automated 20px hole that seems after the picture in Outlook.
As the ultimate HTML desk tag we used was a , we have to use appropriate syntax right here and both fill the or begin a brand new so as to add the content material.
Enter the closing tags for all the above, together with the VML tags, closing these inside an MSO conditional tag.
The v:fill
and v:picture
tags are self closing, subsequently not wanted after the desk:
Though this VML code is usually a bit daunting at first, after you’ve used it just a few occasions and had an opportunity to switch among the values and see the way it impacts the rendering you’ll be a VML professional very quickly.
Coding responsive e-mail background photographs
Presently this background picture is about to cowl the 640 pixel width of the desk, which itself just isn't cell responsive. If you wish to ship the perfect expertise, you positively have to make the e-mail background picture responsive. Sinch Mailgun's Electronic mail and the shopper expertise examine discovered greater than 70% of customers primarily view emails on a cell system.
So as to add responsiveness to this, we’ll need to add a category to the desk and parts that have to be responsive (e.g. class=”width100pc”
) and embody the corresponding CSS within the head of the e-mail. This may be carried out inside a present media question or its personal as proven right here:
@media display and (max-device-width:640px), display and (max-width:640px) {
.w100pc {
width: 100%!essential;
min-width: 100%!essential;
max-width: 1000px!essential;
peak: auto!essential;
}
}
To make the background picture responsive and 100% width, we’ll use the vw
measurement and set the picture width: 100vw
.
By setting a class=”bgmobile”
, we will change how our background picture behaves throughout the identical media question. Most helpful right here is using background-image: url()
, which you'll be able to then swap to an optimized cell picture for the background:
.bgmobile{
width: 100vw!essential;
background-repeat: no-repeat!essential;
background-size: cowl!essential;
background-image: url(mobile-image.png)!essential;}
Electronic mail background picture fallbacks
You’ll need to be sure you have some fallbacks in place, which we dealt with within the full background picture snippet earlier within the article.
There are occasions your photographs merely gained’t load. It might be that your recipient has photographs disabled or maybe they've a spotty connection and the pictures aren’t loading. Both approach, make sure you at all times have good background shade fallbacks.
Fortunately, in relation to background photographs, we solely want a strong shade fallback. Simply be certain that your fallback background shade gives applicable shade distinction with textual content to assist good e-mail accessibility.
Do not use textual content on e-mail background photographs
This is one thing you may need to keep away from in e-mail marketing campaign backgrounds: essential textual content. Dwell textual content is at all times a greater choice and ought to be prioritized.
Designing a background picture with key messaging or related data on it's nearly as dangerous as sending an image-only e-mail. Subscribers who view the marketing campaign with photographs blocked will not see that textual content. It is also dangerous for accessibility. The display studying software program that helps individuals with imaginative and prescient impairments learn and have interaction with emails can solely learn the picture alt textual content - not the phrases on a picture. Nonetheless, it is normally pointless to write down alt textual content for an e-mail background picture because it should not embody something that's very important to the message.
Darkish mode background issues
The rise in reputation of darkish mode in e-mail shoppers means we've got to think about it when excited about our background photographs.
Darkish mode can introduce distinction points with background photographs, notably when switching from darkish to gentle textual content on light-colored background. This shift can have an effect on readability and total consumer expertise.
To assist tackle the problem, contemplate using the "darkish mode picture swap" approach. This strategy includes creating two variations of a picture - one optimized for darkish mode and one other for gentle mode. Utilizing the media question prefers-color-scheme
, the recipients chosen theme is detected and the suitable e-mail background picture is displayed.
Check earlier than the following huge ship
Now that you just’re armed with the abilities to make use of background photographs to take your HTML emails to the following stage, it’s essential to recollect the ultimate step of any e-mail construct; the take a look at.
It’s completely essential that you just run high quality assurance on e-mail campaigns, together with for all the things we’ve mentioned on this article. You’ll need to be sure you’ve added your VML accurately, that your non-Outlook backgrounds are trying nice, and that you haven't any distinction points together with your background photographs and/or fallbacks when darkish mode kicks in.
With limitless e-mail testing from Sinch Electronic mail on Acid, you possibly can preview how your code renders on greater than 100 of the most well-liked shoppers and units. Examine the background and each side of your e-mail in several variations of Outlook, in darkish mode, with image-blocking on and off, and way more. It is the simplest and environment friendly approach to make sure your groups at all times places their finest e-mail ahead.
Credit score goes out to our pal, Jay Oram, who wrote the unique model of this text again within the day. We have reused his strong e-mail code right here. You possibly can see Jay's work and be taught extra from him over at ActionRocket.
