Results 1 to 5 of 5

Thread: Designing HTML emails for Outlook 2007

  1. #1
    liliya is offline Sugar Team Member
    Join Date
    Aug 2005
    Posts
    4

    Default Designing HTML emails for Outlook 2007

    The new Outlook 2007 does nt support or misinterprets many standard HTML tags and CSS styles. These are some issues I ran into. These have nothing to do with the way Sugar sends out emails, but I thought it may help my fellow designers to cope with the new Outlook. I have a feeling, I will be adding to this list, so please keep checking this thread.


    • No background images
      Workaround: use images, forget about gradient backgrounds and other niceties.
    • Margins for images (ex: " img style='margin: 5px'") are ignored.
      Workaround: (1) add white space to the image itself, (2) add padding to the table cell, or (3) if it is not in a table, put it inside a table cell.
    • "float" style is ignored.
      Workaround: use "align=left/right" for images, but be mindful of missing margins (see above).
    • Align="absmiddle" is ignored for images.
      Workaround: none found so far - please recommend one.
    • Padding for P and DIV tags is ignored (ex: <p style="padding: 10px 0 0 0;">)
      Workaround: use margins whenever possible: ex: <p style="margin: 10px 0 0 0;">
    • Paragraph width is ignored (ex: <p style="width: 200px; border-top: 1px solid #999;">).
      Workaround: be creative, so in the example above you can use an image to create a line (some of us may be reminded the old days before CSS)
    • List styles are ignored: no images for bullets, no square bullets, no lists without bullets.
      Workaround: close your eyes and count to 10. If you don't want bullets to appear - use paragraphs instead of lists.
    • Padding for lists is ignored.
      Workaround: use margins whenever possible.
    • Cell padding is acting up. This is by far my favorite and I can't quite grasp the cell padding concept of the new Outlook. You just have to see it to believe me, but sometimes, padding-top adds space on TOP of the cell, NOT INSIDE the cell, so that the borders on top of 2 neighboring cells in the table are not on the same line. Vertical alignment does not help, setting cells to the same height does not help.
      Workaround: avoid tight situations whever possible. Set same padding to all cells in a row or, if using images, add white space to the images themselves instead of cell padding.
    • Font styles set for the entire email in a DIV or SPAN are ignored inside tables.
      Workaround: set font styles for each table inside <table> tag.


    Please feels free to add to the list, and i will do the same as I run into more issues.

    For in-depth information about what is or isn't supported in the new Outlook 2007, please see this guide: http://msdn2.microsoft.com/en-us/library/aa338201.aspx There you will also find a link to an HTML/CSS validator for Outlook 2007.
    Last edited by liliya; 2008-08-14 at 07:14 PM.

  2. #2
    cdcbrian is offline Junior Member
    Join Date
    Sep 2008
    Posts
    1

    Default Re: Designing HTML emails for Outlook 2007

    liliya

    I have found that the Word 2007 rendering engine is ignoring margins applied to the P tag, the DIV tag, anything I've applied it to. I tried using the Padding workaround, but it's ignoring that as well. So I'm struggling with your suggestions above/below since the solution to the problem is a workaround that doesn't work.

    Do you have any other resources or suggestions?
    Thanks!

  3. #3
    liliya is offline Sugar Team Member
    Join Date
    Aug 2005
    Posts
    4

    Default Re: Designing HTML emails for Outlook 2007

    There is no way to control padding 100% in the Outlook 2007, unfortunately.

    I have found that the MARGINS do work on the P tags and PADDING work on the DIVs. Some combination of the 2 work most of the time and other times they don't.

    I embed margins into images whenever possible and resort to tables for alignment. Without seeing your code, this are my suggestions. Sorry for the late reply.

  4. #4
    ives is offline Junior Member
    Join Date
    Sep 2009
    Posts
    1

    Default Re: Designing HTML emails for Outlook 2007

    Imaginative use of borders can mitigate the padding and margin issues:
    e.g.
    border-left:10px solid #eef3f6;

    instead of margin-left: 10px;

  5. #5
    focusdesign is offline Junior Member
    Join Date
    Jul 2010
    Posts
    1

    Default Re: Designing HTML emails for Outlook 2007

    One workaround for the lack of margin and padding support for images in Outlook 2007 is by way of the following ImageMagick command to add a 10 pixel border to the right and the bottom of an image:

    Code:
    convert -border 10x10 -bordercolor White -gravity NorthWest -chop 10x10 original_image.jpg output_image.jpg
    The NorthWest command can be changed to add a border to other parts of the image (i.e. NorthEast for a bottom and left border, West for a right border, etc.).
    Last edited by focusdesign; 2010-07-02 at 08:33 PM. Reason: improving example variety and usefulness

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. UPGRADE 4.5.0h to 4.5.1: UpgradeWizard - ERROR: no file uploaded!
    By creaware in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-02-13, 12:24 AM
  2. View HTML emails in Inbound boxes
    By kickedmydog in forum Feature Requests
    Replies: 0
    Last Post: 2006-01-19, 12:14 AM
  3. HTML Archived Emails
    By aw01 in forum Help
    Replies: 1
    Last Post: 2005-11-09, 11:58 AM
  4. html emails in campaign
    By ElgertS in forum Help
    Replies: 5
    Last Post: 2005-08-22, 08:22 AM
  5. Replies: 1
    Last Post: 2005-05-10, 06:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •