Outlook not rendering background-image css property - html

When a user creates an account on my application they receive an email with the credentials.
This email contains two images, one with the logo and the other as a background image.
The logo one does render in outlook and there are no problems with it, it is programmed as follows:
<img align="center" alt="" src="https://gallery.mailchimp.com/......">
The background image is the opposite, it does not render in outlook and it is programmed as follows:
background-image:url("https://gallery.mailchimp.com/......");
Is there a solution for replacing the css property background-image by the <img> html tag and still keep the image in the background?
UPDATE 1
The HTML where the background image is:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" valign="top" id="templateHeader" data-template-container>
The css for theid = "templateHeader":
#templateHeader{
background-color:#F7F7F7;
background-image:url("https://gallery.mailchimp.com/......");
background-repeat:no-repeat;
background-position:center;
background-size:cover;
border-top:0;
border-bottom:0;
padding-top:45px;
padding-bottom:45px;
}

A possible resolution for your problem is: wrap your <table> in a <div> and then in <td align="center" valign="top" id="templateHeader" data-template-container>, instead of the background-image image is on a separate CSS file, do it directly, using background:url():
<td style="background:url("https://gallery.mailchimp.com/......"); top center /cover repeat;" align="center" valign="top" id="templateHeader" data-template-container>
If you want test it with a CSS file too: (tested and working)
#templateHeader{
background: url("https://gallery.mailchimp.com/......");
background-repeat:no-repeat;
background-position:center;
background-size:cover;
border-top:0;
border-bottom:0;
padding-top:45px;
padding-bottom:45px;
}

You can use this code
body {
margin: 0;
padding: 0;
}
#templateHeader{
background-color:#F7F7F7;
background-image:url("https://d1cr57qij2cwzh.cloudfront.net/wp-content/uploads/2017/11/EOA_OutlookImageSupport_Blog-1200x675.jpg");
background-repeat:no-repeat;
background-position:center;
background-size:cover;
border-top:0;
border-bottom:0;
padding-top:250px;
padding-bottom:250px;
}
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" valign="top" id="templateHeader" data-template-container></td>
</tr>
</table>

Related

How come my HTML email code is not working properly on different widths?

I'm practicing writing HTML email code but for this particular issue, I've been stuck it on for a very long time no matter what I try.
When the view reaches <= 600px (when scrolling your screen to left), the This text should be in the middle! text is inside the 1200x1000 placeholder but not directly in the middle of it.
On the flip side, when the view reaches >= 601px, the This text should be in the middle! text is between the 320x30 placeholder and not inside 1200x1000 placeholder
Lastly, once it reaches <= 1207px, the left and right scrolling begins to happen on the entire page, which it shouldn't but not sure why it's happening.
I have no idea why these things are happening and just feeling like I've ran out of options in terms of fixing this. What am I doing wrong and how can I fix it? A Fiddle is provided below as well: https://jsfiddle.net/s01mr3xp/50/
Here's my HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="x-apple-disable-message-reformatting" />
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&v=1.0&song=cantbuymelove" rel="stylesheet"
type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap" rel="stylesheet">
<style type="text/css">
#import url("https://use.typekit.net/anr2nbh.css");
table td, table th {
border-collapse:collapse;
border-spacing:0px;
mso-table-lspace:0pt;
mso-table-rspace:0pt;
border:0px none;
padding:0;
}
#media screen and (max-width: 600px){
.header-welcome {
background-image: url('http://via.placeholder.com/1200x1000');
background-size: 320px 320px;
background-repeat: no-repeat;
width: 320px !important;
height: 320px !important;
}
.width-320 {
width: 320px !important;
}
.height-auto {
height: auto !important;
}
.overload {
display: block !important;
}
.hide {
display: none !important;
}
.fontsize-11 {
font-size: 11px !important;
}
}
</style>
<!--[if gte mso 9]>
<style type="text/css">
.outlook-fallback {
font-family: Arial, sans-serif !important;
}
</style>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG />
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
</head>
<body width="100%" bgcolor="#f4f8f1">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="width-320" style="margin: 0 auto;" width="1200">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="width-320" align="center" > <img class="width-320 height-auto" style="display: block;" src="http://via.placeholder.com/328x44" width="328" height="44" border="0" /> </td>
</tr>
<tr>
<td class="width-320" align="center" height="30"><img class="width-320" style="display: block;" src="http://via.placeholder.com/320x30" width="600" height="30" border="0" /></td>
</tr>
<tr>
<td class="width-320 header-welcome" valign="top" align="center">
<a href="#">
<font class="fontsize-11 outlook-fallback" style="font-family: museo-sans,Arial,Sans-Serif; font-weight: 100; font-size: 40px; color: #000000;">This text should be in the middle!</font>
</a>
<a href="#">
<img class="hide" style="display: block;" src="http://via.placeholder.com/1200x1000" alt="Welcome!" border="0" />
</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
Take a closer look at these:
#media screen and (max-width: 600px){
.header-welcome {
background-image: url('http://via.placeholder.com/1200x1000');
background-size: 320px 320px;
background-repeat: no-repeat;
width: 320px !important;
height: 320px !important;
}
.hide {
display: none !important;
}
<tr>
<td class="width-320 header-welcome" valign="top" align="center">
<a href="#">
<font class="fontsize-11 outlook-fallback" style="font-family: museo-sans,Arial,Sans-Serif; font-weight: 100; font-size: 40px; color: #000000;">This text should be in the middle!</font>
</a>
<a href="#">
<img class="hide" style="display: block;" src="http://via.placeholder.com/1200x1000" alt="Welcome!" border="0" />
</a>
</td>
</tr>
When the screen width is <=600px:
You are setting the background-image for .header-welcome class.
You are hiding the additional image element <img class="hide"
When the screen width is >600px:
The background-image is not set anymore
The additional image element is shown and the text is placed on top of it.
Then, you have used valign="top" here:
<td class="width-320 header-welcome" valign="top" align="center">
Change it to valign="middle". This places the text in the middle of the cell vertically.
I didn't realise it got put on hold. Sorry about that. Here's the answer:
At the moment every 3rd one is blue and every 5th is black. I'm assuming you want the 3rd one after black to be blue. You are going to want to change the css to
li:nth-child(5n-2) {
background: blue;
}
li:nth-child(5n) {
background: black;
}

Table background image cutoff when using nowrap

I am trying to keep a line of text in a cell from moving down to the next line, but when using white-space: nowrap; the image background that previously covered 100% of the screen is cutoff, as seen in this screenshot:
before and after:
This is the code for the background:
div.transbox {
margin: 0px;
width: 100%;
height: 100px;
background-image: url('http://almosthome2016.org/images/header_trans_bg.png');
}
and the html for the table:
<div class="transbox"><table width="100%" border="0" cellpadding="10" cellspacing="0">
<tr>
<td width="3%" align="left" valign="bottom"></td>
<td align="left" valign="bottom" class="style74"><span class="style8">ALMOST HOME</span> <span class="style75">THE CAMPAIGN FOR THE NEW IRISH ARTS CENTER</span></td>
<td align="left" valign="bottom" class="style75"> </td>
</tr>
</table>
</div>
This was my way of getting the opaque background as the back of the table. I'm open to other suggestions if that is what is causing the issue with the nowrap.
Thank you!
Try adding:
background-size:cover;
To your CSS for div.transbox

How to stop HTML email <img> src attribute from being removed

The IMG src attribute is removed from tag and only ALT text is displayed in HTML email. Below is the container table from the banner that contains the image. This works fine when I display the HTML page in IE or Chrome. But when I run it through GoDaddy, the SRC attribute is deleted and the ALT text is not formatted as indicated in the IMG tag. How do I prevent this from happening?
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed; ">
<tr>
<td align="center" bgcolor="#efeac9" style="padding: 20px 0 0px 0;">
<div style="display: none; font-size: 1px; color:#efeac9; line-height: 1px; font-family: Arial, sans-serif; max-height: 0px; max-width: 0px; opacity: 0; overflow: hidden; mso-hide: all;">
This won't be shown in the design, but will be visible in the inbox preview.
</div>
<table border="0" cellpadding="0" cellspacing="0" width="600" class="wrapper">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" bgcolor="#efeac9" class="logo">
<img src="Images/WP_Email_Banner.png" alt="Wisconsin Pollinators" height="252" width="600" border="0" style="display: block;
padding: 0; color: black; font-family: Arial, sans-serif; font-weight: bold; font-size: 24px; background-color: #efeac9;
-webkit-border-radius: 10px; border-radius: 10px;" class="fluid-image"/>
<!--<img src="Images/WP_Email_Banner.png" height="252" width="600" border="0" style="display: block; padding: 0;"/>-->
</td>
</tr>
<tr>
<td align="center" bgcolor="#ffffff" style='font-family:Verdana; font-weight: bold; color:#943E58; font-size: 20px; line-height: 24px; padding: 15px 0px 15px 0' class="mobile-title-pad">
WELCOME TO<br />WISCONSIN POLLINATORS
</td>
</tr>
</table>
</table>
</table>
Thanks for your help!
I hope you speak for the following image tag:
<img src="Images/WP_Email_Banner.png" alt="Wisconsin Pollinators" height="252" width="600" border="0" />
First check if the filename is correct.
Then check if the path is correct. If your image folder is outside of your html page use the following format "../Images/WP_Email_Banner.png"
Finally try to upload your image to your ftp client and use the url link in the src atrribute (like http://yourwebsite.com/Images/WP_Email_Banner.png. Check again and if you have problems comment.
Remove extra options from image tag and try this
<img src="Images/WP_Email_Banner.png" alt="Wisconsin Pollinators" height="252" width="600" style="display:block;" />
And you also using css class. In email it will not work so use inline css as you are already using.
Please Upload the image on a public url and use its link as img tag's src value.
When you send an email with attachment, the HTML content does not have access to the file system, hence local images do not show up as you expect them to be shown. I faced this with Outlook web and solution was to host the images on public URL.

Website works in firefox but not in chrome or safari. Navigation row does not line up correctly in chrome and safari

Below is my code for my website. It works perfectly on firefox but not in chrome or safari. The only thing that doesn't work is the navigation row displays to the right of the header picture and the home button is the full length of the header picture. I think it has something to do with the display:inline in the css but I'm note sure.
<html>
<head>
<title>Workouts</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div id = "page">
<table border="0" cellspacing="0" cellpadding="0" align="center" class="border" width = "50%" height ="100%">
<div id = "header">
<tr>
<td>
<img src =images/header_logo2.png />
</td>
</tr>
</div>
<tr class = "nav" height="30px" width="100%">
<td></td>
<td>Home</td>
<td>About</td>
<td>Workouts</td>
<td>Trainers</td>
<td>Contact</td>
<td></td>
</tr>
<tr class = "content" width="100%">
<td><img width="100%" src="images/content.png" /></td>
</tr>
</table>
</div>
</body>
</html>
This is my stylesheet
* {
margin-top:0;
padding-top:0;
padding-bottom: 0;
margin-bottom: 0;
}
body{
background:pink;
}
.border{
background-color: #c92f51;
}
.nav a{
text-decoration: none;
color:pink;
}
.nav a:hover{
color:gray;
}
.nav td{
display: inline-table;
width: 14.29%;
height="30px";
text-align: center;
font-size: 24px;
color:pink;
}
tr .content{
background:#c92f51;
}
.content td{
background:white;
padding: 30px 30px 30px 30px;
}
Invalid mark-up without DOCTYPE declaration. Check your code by copy/paste in w3c validator check the errors.
Every table row has to have the same number of columns. If you don't, you need a colspan attribute to make up for it.
Also you should not have <div> tags directly instead a table. How browsers handle these types of errors is not very consistent, so it's best to fix them. Try changing:
<table border="0" cellspacing="0" cellpadding="0" align="center" class="border" width = "50%" height ="100%">
<div id = "header">
<tr>
<td>
<img src =images/header_logo2.png />
</td>
</tr>
</div>
To
<table border="0" cellspacing="0" cellpadding="0" align="center" class="border" width = "50%" height ="100%">
<tr id = "header">
<td colspan="7">
<img src =images/header_logo2.png />
</td>
</tr>
And also add the same colspan on the last row:
<tr class = "content" width="100%">
<td colspan=7><img width="100%" src="images/content.png" /></td>
</tr>
More generally, using tables for layout like this is not good practice nowadays. If you search google for "css layouts vs tables" you can find out a lot more about it.
Use a validator. Your HTML is invalid and at least one of your errors causes significant differences in how different browsers error recover from it.
Some will move the <div> that is a child element of the <table> so it is outside the table (because it isn't allowed there).
You don't have any tabular data in there, so get rid of all the table markup and use something more appropriate (e.g. a list for your list of links and so on).

How do I go about fixing cross-browser issues with my MailChimp HTML newsletter?

I am experiencing a lot of browser inconstancies with my HTML newsletter. Are there any glaring issues you are able to diagnose just by looking through the code? For example, the newsletter has a really long height to - far beyond the content's height. This is just one specific issue.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- Facebook sharing information tags -->
<meta property="og:title" content="*|MC:SUBJECT|*" />
<title>*|MC:SUBJECT|*</title>
<style type="text/css">
/* Client-specific Styles */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
body{width:100% !important;} .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */
/* Reset Styles */
body{margin:0; padding:0;}
img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
table td{border-collapse:collapse;}
#backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}
body, #backgroundTable{
background-color:#FAFAFA;
font-family: Arial;
}
#templateContainer{
border: 1px solid #DDDDDD;
}
p {
color: #5a5a5a;
}
a {
color: #8b8b8b;
}
h1, .h1{
color:#202020;
display:block;
font-family:Arial;
font-size:16px;
font-weight:bold;
line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
text-align:left;
}
h2, .h2{
color:#202020;
display:block;
font-family:Arial;
font-size:22px;
font-weight:bold;
line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
text-align:left;
}
h3, .h3{
color:#202020;
display:block;
font-family:Arial;
font-size:16px;
font-weight:normal;
line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
text-align:left;
}
h4, .h4{
color:#202020;
display:block;
font-family:Arial;
font-size:22px;
font-weight:bold;
line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
text-align:left;
}
#templatePreheader{
background-color:#FAFAFA;
}
.preheaderContent div{
color:#505050;
font-family:Arial;
font-size:10px;
line-height:100%;
text-align:left;
}
.preheaderContent div a:link, .preheaderContent div a:visited, /* Yahoo! Mail Override */ .preheaderContent div a .yshortcuts /* Yahoo! Mail Override */{
color:#336699;
font-weight:normal;
text-decoration:underline;
}
#templateHeader{
background-color:#FFFFFF;
border-bottom:0;
}
.headerContent{
color:#202020;
font-family:Arial;
font-size:34px;
font-weight:bold;
line-height:100%;
padding:0;
text-align:center;
vertical-align:middle;
}
.headerContent a:link, .headerContent a:visited, /* Yahoo! Mail Override */ .headerContent a .yshortcuts /* Yahoo! Mail Override */{
color:#336699;
font-weight:normal;
text-decoration:underline;
}
#headerImage{
height:auto;
max-width:600px;
}
#templateContainer, .bodyContent{
background-color:#FFFFFF;
}
.bodyContent div{
color:#505050;
font-family:Arial;
font-size:14px;
line-height:150%;
text-align:left;
}
.bodyContent div a:link, .bodyContent div a:visited, /* Yahoo! Mail Override */ .bodyContent div a .yshortcuts /* Yahoo! Mail Override */{
color:#336699;
font-weight:normal;
text-decoration:underline;
}
.bodyContent img{
display:inline;
height:auto;
}
.leftColumnContent{
background-color:#FFFFFF;
}
.leftColumnContent div{
color:#505050;
font-family:Arial;
font-size:14px;
line-height:150%;
text-align:left;
}
.leftColumnContent div a:link, .leftColumnContent div a:visited, /* Yahoo! Mail Override */ .leftColumnContent div a .yshortcuts /* Yahoo! Mail Override */{
color:#336699;
font-weight:normal;
text-decoration:underline;
}
.leftColumnContent img{
display:inline;
height:auto;
}
.rightColumnContent{
background-color:#FFFFFF;
}
.rightColumnContent div{
color:#505050;
font-family:Arial;
font-size:14px;
line-height:150%;
text-align:left;
}
.rightColumnContent div a:link, .rightColumnContent div a:visited, /* Yahoo! Mail Override */ .rightColumnContent div a .yshortcuts /* Yahoo! Mail Override */{
color:#336699;
font-weight:normal;
text-decoration:underline;
}
.rightColumnContent img{
display:inline;
height:auto;
}
#templateFooter{
background-color:#FFFFFF;
border-top:0;
}
.footerContent div{
color:#707070;
font-family:Arial;
font-size:12px;
line-height:125%;
text-align:left;
}
.footerContent div a:link, .footerContent div a:visited, /* Yahoo! Mail Override */ .footerContent div a .yshortcuts /* Yahoo! Mail Override */{
color:#336699;
font-weight:normal;
text-decoration:underline;
}
.footerContent img{
display:inline;
}
#social{
background-color:#FAFAFA;
border:0;
}
#social div{
text-align:center;
}
#utility{
background-color:#FFFFFF;
border:0;
}
#utility div{
text-align:center;
}
#monkeyRewards img{
max-width:190px;
}
ol {
padding-left: 20px;
}
li {
margin-bottom: 10px;
}
.letter-from-editor {
float: left;
display: inline;
color: #24ae04;
font-size: 22px;
margin-left: 40px;
}
.publication-date {
float: right;
margin-top: 0;
text-transform: uppercase;
margin-right: 20px;
font-size: 12px;
}
td.bodyContent {
padding: 25px;
}
.support {
text-align: center;
color: #24ae04;
font-size: 22px;
margin: 15px 0;
}
.continue-reading {
text-decoration: none;
}
.footer-links {
font-size: 12px;
text-decoration:none;
}
.the-footer {
width: 600px;
text-align: right;
margin:20px 0 50px 0;
}
.all-footer-links {
margin-top: 65px;
border-top: 1px solid #e8e8e8;
border-bottom: 1px solid #e8e8e8;
width: 600px;
padding: 15px 0 15px 0;
text-align: right;
font-size: 12px;
color:#e8e8e8;"
}
</style>
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
<center>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
<tr>
<td align="center" valign="top">
<!-- // Begin Template Preheader \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="templatePreheader">
<tr>
<td valign="top" class="preheaderContent">
<!-- // Begin Module: Standard Preheader \ -->
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<!-- *|IFNOT:ARCHIVE_PAGE|* -->
<td valign="top" style="background-color: #000000;color: #FFFFFF;">
<div mc:edit="header_links" style="text-align:center;">
Having trouble viewing this email? <a target="_blank" href="*|ARCHIVE|*" target="_blank">View it in your browser</a>
</div>
</td>
<!-- *|END:IF|* -->
</tr>
</table>
<!-- // End Module: Standard Preheader \ -->
</td>
</tr>
</table>
<!-- // End Template Preheader \\ -->
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
<tr>
<td align="center" valign="top">
<!-- // Begin Template Preheader \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="templatePreheader" style="border-bottom:1px solid #e8e8e8;">
<tr>
<td valign="top" class="preheaderContent">
<!-- // Begin Module: Standard Preheader \ -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<!-- <td valign="top">
<div mc:edit="std_preheader_content">
Use this area to offer a short teaser of your email's content. Text here will show in the preview area of some email clients.
</div>
</td> -->
<!-- *|IFNOT:ARCHIVE_PAGE|* -->
<td valign="top" style="background-color: #FFFFFF;">
<div mc:edit="message" style="text-align:left; margin:30px auto; width:600px;">
<h1 style="color:#3db0df;">example's Weekly Newsletter</h1>
<p mc:edit="top-header-message" style="width:440px;display:inline;font-size:12px;line-height:140%;">Each week we'll keep you informed about features, products, and service<br>updates. Be sure to go to our <a target="_blank" href="http://www.example.com">website</a> and follow us on <a target="_blank" href="http://www.twitter.com/example">twitter</a> for more<br>frequent news in between.</p>
<img mc:edit="logo-main" style="float:right;margin-top:-55px;" src="logo.png" />
</div>
</td>
<!-- *|END:IF|* -->
</tr>
</table>
<!-- // End Module: Standard Preheader \ -->
</td>
</tr>
</table>
<!-- // End Template Preheader \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" style="margin-top:50px;">
<tr>
<td align="center" valign="top">
<h1 mc:edit="from-the-editor" class="letter-from-editor">A letter from the editor</h1>
<p mc:edit="publication-date" class="publication-date">March 28, 2012</p>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer">
<tr>
<td align="center" valign="top">
<!-- // Begin Template Header \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateHeader">
<tr>
<td class="headerContent">
<!-- // Begin Module: Standard Header Image \\ -->
<img src="header.png" style="max-width:600px;" id="headerImage campaign-icon" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext />
<!-- // End Module: Standard Header Image \\ -->
</td>
</tr>
</table>
<!-- // End Template Header \\ -->
</td>
</tr>
<tr>
<td align="center" valign="top">
<!-- // Begin Template Body \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
<tr>
<td colspan="3" valign="top" class="bodyContent">
<!-- // Begin Module: Standard Content \\ -->
<table border="0" cellpadding="20" cellspacing="0" width="100%" height="100%">
<tr>
<td valign="top">
<div mc:edit="std_content00">
<h2 class="h2" style="color: #3db0df;">5 Ways To Be Happy Right Now</h2>
<p>Down in the dumps. The Blues. The doldrums. No matter what you call it - sometimes, even if you are the happiest person around, you start to feel like crud.</p>
<p>This week there seems to be a crazy amount of negative info swirling around - whether it's deadly tornados or horrible rhetoric as the Republican primaries heat up (especially negative for women on this one, but I'll try to not get political!) And, I guess some of this finally got to me...so I tried everything I could to get myself out of my funk.</p>
<h3 class="h3" style="color: #3db0df;"><em>Here were the 5 things that worked the best:</em></h3>
<ol>
<li>I did a <strong>20 minute workout</strong> (mostly going for brisk walks) right after I woke up in the morning - before I started my day. No matter what happened that day, i knew i had done something good for myself. That made me happy.</li>
<li>I made sure to <strong>drink a lot of water</strong>. Dehydration is very fatiguing on the body - this fatigue can quickly turn to crankiness. So drink up!</li>
<li>I <strong>made a playlist</strong> of 'pump up' tunes. Played them on blast and repeat. I made sure to choose songs that had great memories attached and got my heart rate going. It's amazing how much dancing around your house (or apartment) totally uninhibited, can put a smile on your face!</li>
<li>Made a point to <strong>hang out with a friend that really makes me feel good</strong> - is a lot of energy and has a great sense of humor. Laughter is always the best medicine for the blues.</li>
<li><strong>Read example</strong>, of course! There is so much great stuff here, that i can always find something to cheer me up. ;) (some of those great finds are below!)</li>
<p>Hope you are having an excellent week!</p>
<p>Be well,</p>
<p>Erin</p>
</ol>
</div>
</td>
</tr>
</table>
<!-- // End Module: Standard Content \\ -->
</td>
</tr>
</table>
<!-- // End Template Body \\ -->
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
<br>
<table>
<tr>
<td valign="top" width="275" class="leftColumnContent">
<!-- // Begin Module: Top Image with Content \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="400">
<tr mc:repeatable>
<td valign="top" style="border:1px solid #e8e8e8;">
<img src="bulb.png" mc:label="image" mc:edit="post1" />
<div mc:edit="tiwc300_content00" style="padding:20px;">
<h4 class="h4" style="color:#3db0df;">3 Tips for Finding Positivity in an Endlessly Negative Workplace</h4>
<p>Today’s society is riddled with negativity. Maybe it’s like this for every generation...</p>
<a target="_blank" href="" style="text-decoration:none;color:#3db0df;">Continue Reading >></a>
</div>
</td>
</8r>
</table>
<!-- // End Module: Top Image with Content \\ -->
</td>
<td width="44"></td>
<td valign="top" width="275" class="rightColumnContent">
<!-- // Begin Module: Top Image with Content \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="400">
<tr mc:repeatable>
<td valign="top" style="border: 1px solid #e8e8e8;">
<img src="dog.png" mc:label="image" mc:edit="post2"/>
<div mc:edit="post2" style="padding:20px;">
<h4 class="h4" style="color:#3db0df;">What to Do When You Don’t Feel Like Doing Anything</h4>
<p>Where in your life is stress a noticeable concern? Maybe you get stressed out from work, family responsibilities...</p>
<a target="_blank" href="" style="text-decoration:none;color:#3db0df;">Continue Reading >></a>
</div>
</td>
</tr>
</table>
<!-- // End Module: Top Image with Content \\ -->
</td>
</tr>
</table>
<table>
<h1 mc:edit="sponsor" class="support">example is pleased to support</h1>
</table>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="600" style="background-color:#FFFFFF;">
<div style="width:600px;background-color:#FFFFFF;padding:10px 0;margin-bottom:70px;">
<img mc:edit="advertisement" src="ad.png" />
</div>
</table>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="600" style="background-color: #FFFFFF; border-top:1px solid #e8e8e8;">
<div class="all-footer-links" style="margin-right:20px;">
<div style="float:left;margin:-127px 0 0 0;">
<img mc:edit="footer-logo" src="logo-footer.png"/>
</div>
<div style="margin-right:10px;">
<a target="_blank" class="footer-links" href="http://www.example.com/blog/motivation/">Motivation</a> |
<a target="_blank" class="footer-links" href="http://www.example.com/blog/productivity/">Productivity</a> |
<a target="_blank" class="footer-links" href="http://www.example.com/blog/health/">Health</a> |
<a target="_blank" class="footer-links" href="http://www.example.com/blog/self-improvement/">Self Improvement</a> |
<a target="_blank" class="footer-links" href="http://www.example.com/blog/contact/">Contact Us</a>
</div>
</div>
<div mc:edit="footer-links" class="the-footer">
<p style="float:left;font-size:10px;margin-left:10px;">Copyright © 2012 example</p>
<div style="margin-right:10px;">
<a target="_blank" href="http://www.facebook.com/example"><img mc:edit="facebook" src="facebook.png" /></a>
<a target="_blank" href="http://www.twitter.com/example"><img mc:edit="twitter" src="twitter.png" /></a>
<a target="_blank" href="https://plus.google.com/102257056998496075187"><img mc:edit="googleplus" src="googleplus.png" /></a>
<a target="_blank" href="http://feeds.feedburner.com/example/LYVv/"><img mc:edit="rss" src="rss.png" /></a>
</div>
</div>
</table>
</center>
</body>
CSS classes are ignored by email clients. If you are using standalone clients (like Outlook Express) to view your emails, divs will also not be working (float:left will be ignored).
I suggest you to change your HTML page like -
Drop everything outside the <body>...</body>
Use <table> instead of <div>
Dont use <style> tags to define style-classes, or .css file to load styles. Instead use inline css like style="...." with the <td> / <table> containers.
Hope this helps you in email template designing.
This way you can make your email cross-browser compatible for all websites (like gmail.com) and stand-alone clients (like outlook express).
1 - Change Height to auto
#backgroundTable{height:auto; margin:0; padding:0; width:100% !important;}
2 - Add text-aligh:center to TD
<td valign="top" style="text-align:center;background-color: #FFFFFF;">
<div mc:edit="message" style="text-align:left; margin:30px auto; width:600px;">
<h1 style="color:#3db0df;">example's Weekly Newsletter</h1>
<p mc:edit="top-header-message" style="width:440px;display:inline;font-size:12px;line-height:140%;">Each week we'll keep you informed about features, products, and service<br>updates. Be sure to go to our <a target="_blank" href="http://www.example.com">website</a> and follow us on <a target="_blank" href="http://www.twitter.com/example">twitter</a> for more<br>frequent news in between.</p>
<img mc:edit="logo-main" style="float:right;margin-top:-55px;" src="logo.png" />
</div>
</td>
3 - Change Height to auto
<table border="0" cellpadding="0" cellspacing="0" height="auto" width="600" style="background-color:#FFFFFF;">
<div style="width:600px;background-color:#FFFFFF;padding:10px 0;margin-bottom:70px;">
<img mc:edit="advertisement" src="ad.png" />
</div>
</table>