Yahoo Mail Android App Limits Styles to Email Body

Ever since Gmail started supporting media queries, there has been a resurgence of interest in responsive email design. If you’re using media queries in your design you should know that the Android version of Yahoo! Mail does not support the tag in the head of an email.

Android and iOS Versions of the Yahoo! Mail app.

Although the Android and iOS versions of the Yahoo! Mail app look similar, there is a key difference between them and that is the iOS version supports in both the head as well as the body of the email whereas the Android version only supports in the body.

Here’s a code snippet to test with:




.head-class{background-color:green;}
@media only screen and (max-width: 2046px)  {
  .head-mq{background-color:green;}
}



.body-class{background-color:green;}
@media only screen and (max-width: 2046px)  {
  .body-mq{background-color:green;}
}


HEAD STYLES:
Class:

Media Query:


BODY STYLES:
Class:

Media Query:

Here’s the results in the two versions of the Yahoo! Mail app:

This makes Yahoo! Mail’s Android version an outlier in email clients as all other email clients that support the tag either support them in the head and body or just in the head (in the case of Gmail). See this table for details.

Lack of max-device-width support.

Just like Yahoo! Mail Webmail, both iOS and Android versions of the app do not support the max-device-width media query. So you’re limited to using max-width. This may come in useful when troubleshooting responsive email designs.

Should You Duplicate Your Styles?

Should you put your embedded styles in both the head and body of your email to accommodate Yahoo! Mail’s Android app? If your style block is not large, it may not be a bad idea to also include them in the body to enable your email to be responsive in the Android client. However duplicating your style blocks increases the chance for error and the possibility of running into character limitations in certain email clients like Gmail. Therefor, it may be best to keep your responsive styles in the head and allow your design to render as the desktop version in the Android client.

Make sure your email renders nicely not just with Yahoo! Mail but with all the other major email clients as well. Get started for free with our 7 day trial of Email on Acid.

Leave a Reply