background image on TD in Outlook 2007

29,097

Solution 1

Checkout this link for supported HTML and CSS tags in Outlook 2007:

http://msdn.microsoft.com/en-us/library/aa338201%28v=office.12%29.aspx

MS also offers an HTML/CSS Validation Tool for Outlook 2007 at the URL above. That may at least provide you with a method of testing.

I have found that "Less Is More", when it comes to HTML emails - simple layout, simple techniques. Since each email client is going to vary, "dumbing" it down is the only way to guarantee the broadest reach.

Solution 2

This should help:

You may have read earlier about our approach to applying a background image to an email. This involved not only adding a background image to the entire HTML page, but wrapping all content in a table with a background image applied to it. However, there was a limitation to this method, in that while you could apply a background image to the entire table, you couldn’t apply one to an individual table cell. Thanks to one of our star customers, Brian Thies, we’ve been shown a little code that not only will allow you to add a background image to a table cell, but works in most major email clients, too...

This technique... forces a background image to display in Outlook 2003/2007/2010...

Solution 3

I have made LOTS of HTML emails and have found that background images are NOT the way to go without using some hack.

Always use an <img> tag in a TD for your images. If you want text on top of an image, include it into the image and repeat the text in the alt attribute of the img tag.

You can see one I have made here. It uses very little CSS and img tags, plus it renders perfectly in almost all Email clients.

Unfortunately with HTML emails we're a bit limited to what we can do, but there are ways around it :)

Hope that help :)

Solution 4

You could do this, inside <td> where you want bg image place another table and do this .

<td> < !-- this is table where you want to set bg image -->
< table background="myimg.jpg"    style="background-repeat:no-repeat;" >
 here goes content
 </table>
 </td>

this will cover whole and it works perfectly in outlook

Solution 5

Fortunately, there are formatting tweaks you can employ to address this. The upside is that making your HTML email Outlook 2007 compatible can decrease the chances that it will end up in a recipient’s junk folder. The downside is that you may have to change the way in which you approach formatting parts of your emails, thereby impacting the look and feel of your creatives. Below is a list of key items to look out for, and possible alternatives that are Outlook 2007 compatible.

  • Background images – Background images will not display in Outlook 2007. This can leave a big, unintended void in your email. You should avoid using background images altogether. Whenever possible, you should use inline image tags instead. If you feel you must use a background image, set an appropriate background color to fill in for the potentially missing image. If you have text overlaying a background image, you can edit the image to include the text and use an image map for any links.

  • Division tags – “Div” tags are not fully supported in Outlook 2007. Some of the more commonly used attributes that have been omitted are: float, clear, position, and padding. Without these attributes, positioning with div tags is virtually impossible. Instead, you should control the positioning of your email with a standard table.

  • Forms – Forms are not supported in Outlook 2007. Outlook 2007 recipients will not be able to submit any forms embedded in an email. If you wish to give recipients the option to fill out a form, place a link to an online version of it within the email.

  • Flash & JavaScript – It is recommended that you do not attempt to utilize Flash or Javascript on your HTML emails, due to their lack of support in email browsers (including Outlook 2007) and the fact that some filters will tag emails that contain Flash or JavaScript code. Also, most email readers will automatically disable this content as a security measure.

  • Bulleted list with images – While both ordered and unordered lists are fully supported, lists that use images as bullets instead of standard bullets are not. If you need to use an image for your bullet points, one possible solution is to put your list into a two column table, using the left-hand column to place your bullets.

  • Animated GIFs – Animated GIFs will not animate in Outlook 2007. The image will appear, but only the first frame of the animation will be displayed.

  • Alt tags - Alt tags are also not supported. This is the text that is shown when an image does not load upon opening an email. However, most email readers do support alt tags, and there is no adverse effect to having them in your Outlook 2007 compatible email (other than the fact that they will not display,) so you can continue to include these in your emails if you wish.

  • Table definitions - As we detailed above, Outlook 2007 renders HTML emails in Microsoft® Word, which is very sensitive to extra <tr> or <td> tags and does not adjust well to poorly sized tables. Previous Outlook versions would open emails in Internet Explorer, which is very forgiving of poor table definitions. You should ensure that your table definitions are correct and that the data you are placing inside the table fits properly within the defined table width.

Share:
29,097
huminuh83
Author by

huminuh83

Updated on October 05, 2020

Comments

  • huminuh83
    huminuh83 over 3 years

    I've been told using tables is the best way to send emails although it's been twice as difficult. I have setup the email in tables, set all of the cells which need backgrounds with the background="" property, as well as using CSS in <style> tags saying the same thing to cover my bases. The body background shows fine in outlook, but the TD backgrounds do not. I've tried also using but that doesn't work either. I've read that Outlook 2007 doesn't support background images and won't in the future, I'm thinking there has to be a way around it?