Repurpose your Images for Mobile Email |
|
10.19.2011 Get connected with Email on Acid for up-to-date news and information on the subject of email design, development, and testing! |
By Michelle KlannAugust 1, 2011 |
Yahoo! Mail does not support the Style Block in Internet Explorer 7 and 8That's right, Yahoo! Mail (formerly known as Yahoo! Beta) does NOT support the style block in Internet Explorer 7 and 8. A big thanks to Brian Sisolak @bsisolak at Trilogy Interactive for bringing this to our attention! So for example, this: <html>
<head> <style type="text/css"> p {margin-bottom: 1em; background:#096} </style> </head> <body> <p>This is the first paragraph</p> <p>This is the second paragraph</p> </body> </html> Will get converted to this: <html>
<head> </head> <body> <p>This is the first paragraph</p> <p>This is the second paragraph</p> </body> </html> The FixCopy your style block to just before the closing body of your email: <html>
<head> </head> <body> <p>This is the first paragraph</p> <p>This is the second paragraph</p> <style type="text/css"> p {margin-bottom: 1em; background:#096} </style> </body> </html> Up until now, I was convinced that placing the style block in the body tag was an email folklore; the legend of a day long ago when that fix actually worked for Gmail. Nevertheless, I think the reason that this works is because of the way Yahoo is formatting it's closing style block. Moving the block to just below the opening body gave me inconsistent results. Update 8/16/2011:
To add insult to injury, we just realized that sometimes the Outlook 2007 and 2010 clients ignore the style block when it is placed below the body tag and/or just before the closing body. To be extra safe, duplicate your style block in your head tag AND before the closing body tag.
|
If you haven't signed up yet, give our FREE online Email Test a try. Just drop in your code and we will instantly simulate your email in the most popular email clients!
Get connected with Email on Acid for up-to-date news and information on the subject of email design, development, and testing!