intrigued_66
intrigued_66

Reputation: 17248

HTML not displaying correctly in outlook 2007 emails?

EDITED:

I have written some correct HTML and passed this as a string into an email,

  <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>/n<html>
    <head>
    </head>
    <body>
        <table>
            <tr>
                <th>X</th>
                <th>Y</th>
            </tr>
      <tr>
         <td>Overall</td>
         <td>207,890</td>
      </tr>
      <tr>
         <td>a</td>
         <td>100,568</td>
      </tr>
      <tr>
         <td>b</td>
         <td>107,322</td>
      </tr>
        </table>
    </body>
</html>

I re-wrote the HTML to be extremely simple, only using a table but its still not showing??

Upvotes: 2

Views: 2196

Answers (2)

Rune Grimstad
Rune Grimstad

Reputation: 36300

Your problem is probably not only Outlook 2007 but most other email clients as well.

Make sure that your html is very simple and does not use many external resources, inline CSS is probably necessary. This article is a nice summary: http://css-tricks.com/using-css-in-html-emails-the-real-story/

Upvotes: 1

Crab Bucket
Crab Bucket

Reputation: 6277

Generally email clients don't seem to like decently formatted HTML. Just from conversation I've had with HTML developers

  1. Use inline styles even if that means repeating yourself. No style sheets even in head
  2. No fancy floating of the divs
  3. Put everything in tables for formatting

Generally pretend like it's 1999

Upvotes: 6

Related Questions