• Stars
    star
    162
  • Rank 232,284 (Top 5 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 11 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A few layout ideas for HTML email that adapt to small screens and respond to breakpoints.

Responsive Layouts for Email

A few layout ideas for HTML email that adapt to small screens and respond to breakpoints. It also includes workarounds for a few HTML email gotchas in such as dodgy box model support in Hotmail, auto-detected links in Yahoo!, and background images in Outlook.

This template is not meant to be used out of the box. Any email derived from this code should always be tested.

Demo

Tested In

  • Webmail: Hotmail, Gmail, Yahoo!, AOL
  • Desktop Mac: Apple Mail, Thunderbird, Outlook Mail
  • Desktop Windows: Outlook (2007, 2010)
  • iPhone (4, 4S, 5), iPod (Retina), iPad (1, 2, 3, Mini): iOS Mail, GMail
  • Google Nexus (Android 4.3): Android Email, GMail

Known Issues

  • Gmail strips out the <style> tag and displays only inline styles. Since this disables media queries, Gmail displays a shrunk version of the desktop layout.

Tools and Resources

Download, Fork, Commit.

If you can make this better, please download, fork, and submit a pull request. I'd love to work on this with a few folks and get it as solid as can be.