Preview and Test showing two different backgrounds | Community
Skip to main content
June 17, 2013
Question

Preview and Test showing two different backgrounds

  • June 17, 2013
  • 4 replies
  • 1217 views
I'm trying to create an email with a black ground. When previewing email, it shows the black background. When I send a test email it shows a white background, but when I view as a web page, it shows the black ground.

Any help would be apprciated.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Level 7
June 18, 2013
Email clients are very limited in their HTML capabilities, and even more limited when it comes to CSS. However, the web browsers you use to preview your emails, or view them as a web page, are not.

How are you creating your emails - are you using an editor like Dreamweaver? Such editors usually design for web pages - not emails.

The way you need to design your email is with basic nested tables. Try to use most basic HTML to format your email as much as you can. Then use only in-line CSS to refine it to perfection. This technique ensures that the look of your email will deterioate gracefully in lesser capable email clients.

Do not use <div> containers, or colspan and rowspan in table cells. No css between the <head> tags, and no css floats or css positioning. There are many articles on the web about designing HTML for emails.

You may also use tools such as emailonacid.com to preview how your email will look in different email clients. This can be a real eye-opener!
June 18, 2013
Have you set the background-color in the body tag? Avoid using it in the body tag. You can however use it in the table backgrounds ;-)
June 18, 2013
Campaign Monitor has an awesome list of what CSS properties are supported (or not) by the majority of popular email clients. Not sure which one you're using to set the background color. I typically set it on the body tag, and then nest the entire email in a 100% wide table with bgcolor set to whatever background color I want.

http://www.campaignmonitor.com/css/

BTW--if you're using the background css style element to set the color and you're testing in Outlook, that's likely your problem. Outlook doesn't support that property.
June 18, 2013
Just in case by chance you haven't... Make sure the email is unapproved while making the changes, and approved before you send the test. In my experience changes will show up in the preview but not a test if it was not approved first.