Wednesday, March 2, 2011

Message not centered in Hotmail?

I recently had an issue with my emails not centering in hotmail but centering everywhere else (gmail, yahoo, aol etc.). Even though I was defining w/in the main table align="center", it wouldn't work in hotmail. After a bit of google searching I found this fix:

<style type="text/css">
body { width: 100% !important; }
</style>

So far so good! I place this code now in all of my newsletters, directly under the <body> tag, and have yet to find any instances where it does not work.

2 comments:

  1. This works also: .ExternalClass {width: 100%;}


    Thanks Bruce-

    "Hotmail places your email inside a div with a class named “ExternalClass” - here are the properties they have set on that class:

    .ExternalClass{display:inline-block; line-height: 131%};
    This has no effect on your email when using IE but every other browser the email will not be centered.

    To overwrite this simply include this in your embedded CSS:

    .ExternalClass {width: 100%;}
    I found this to be a great resource for other similar Hotmail issues: Emailology.org"

    ReplyDelete
  2. From job request to document submission and from sharing photographs to sharing important data, everything is done through emails. In that case email management is something that everyone needs to realize and consider as a part of their life. Gmail Support Service

    ReplyDelete