Giter Site home page Giter Site logo

lizzil621 / principles-of-email-design Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rodriguezcommaj/principles-of-email-design

0.0 0.0 0.0 32 KB

A repository of coding resources for anyone first dipping their toes into the waters of HTML email design. Godspeed.

License: MIT License

HTML 100.00%

principles-of-email-design's Introduction

The Principles of Email Design

A repository of coding resources for anyone first dipping their toes into the waters of HTML email design. Godspeed.

Originally released as part of a Litmus Live Workshop of the same name. The example files from the workshop can be found in the Workshop Files directory.

Below you'll find some information on different techniques for designing and developing HTML email campaigns along with links to some inspiring email campaigns and other valuable resources.

Traditional Responsive

This approach uses the three tenets of responsive design to create responsive HTML emails. It relies on media queries, fluid tables, and fluid images, all of which are now well-supported in most email clients. For those clients that don't support media queries or embedded styles, the hybrid/spongy approach below is a good alternative.

Example can be found in Traditional Responsive Emails.

Hybrid/Spongy Approach

This approach, first introduced by Fabio Carneiro, uses fluid-by-default tables, combined with max-width styles and Outlook ghost tables to create responsive emails. It is an excellent approach when media queries or embedded styles aren't supported, as it works nearly everywhere. It also serves as a good base to build on, with media queries used as progressive enhancements for email clients that support them.

Example can be found in Hybrid Emails.

Different Development Approaches

Below are three alternative approaches to building responsive HTML email campaigns. Each has its pros and cons, so choose wisely.

Fab Four Technique

As pioneered by Rémi Parmentier, this approach uses an understanding of width, max-width, min-width, and the calc() function to allow for different layouts across desktop and mobile devices.

Example can be found in Alternative Approaches/fab-four.html.

Mobile-First Approach

First introduced by Stig Morten Myre, this approach also uses width, max-width, min-width, and the calc() function, combined with Microsoft ghost tables and display: table; (plus a few hacks) to achieve responsive emails. This builds on the mobile version first, which is a nice way to approach email as more subscribers move towards consuming email via mobile devices. It works damned near everywhere and is a nice base to build on.

Example can be found in Alternative Approaches/mobile-first.html.

Div-Based Design

This approach relies primarily on div elements as the containers and display: table; as the layout mechanism of your email. Nearly every email client, with the exception of Outlook, understands layout with divs. For Outlook clients, ghost tables are employed to get layouts rendering properly. Depending on the complexity of your design, this can be a great approach as it can keep your code lean and easy to maintain.

Example of a single-column, minimal approach can be found in Alternative Approaches/nearly-table-free.html.

Example of a complex, div-based email can be found in Alternative Approaches/div-based.html.

Mouth-Wateringly Good Campaigns

Here are a few campaigns to get your imagination going with what you can accomplish in HTML emails.

More resources

I actually maintain a huge list of resources for email designers and marketers. Check out the resources page on my website.

Looking for help troubleshooting or just want to chat with fellow email enthusiasts? Check out the Litmus Community. It's free to join and comes with some cool benefits (access to Litmus tools, anyone?).

principles-of-email-design's People

Contributors

rodriguezcommaj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.