Coding responsive emails can be a real pain. This guide will help you through some of the the most common issues you'd face.
-## Images
+## Why Foundation for Emails
+
+
+
+## Need to know
+
+The sad truth about creating or coding HTML emails is that tables are the only thing that is universally supported when it comes to email design. If you came from the world of building websites, this may seem like a stepping into Doc Brown's Delorean, charging up the Flux-capitor, and going back to the 1996. Suddenly your CSS is written with inline style tags, useful CSS properties don't work and you're burried in a sea of table tags.
+
+It's not all doom and gloom though, and we're all in this together. Foundation for Emails helps by getting you away from tables (Sass version), helping you with an organized project structure, and a well tested codebase to make this much easier. We've put together a guide and links to resources from our friends to help you along as well as a new [Responsive Emails master class](http://zurb.com/university/responsive-emails-foundation) to become a HTML email pro.
+
+## General
+
+**Email Container Width**
+
+The email equivalent of the browser window is the "viewport", or the area in an email client dedicated to showing the actual email. This varies quite a bit.
+
+Foundation for Emails' default container with around 600px wide. That's because the majority of email clients have a preview pane that is around 550-700 pixels. With the Sass version, you can easily customize this width by adjusting the `$global-width` variable.
+
+The height of your email doesn't matter as much because people scroll. It still helps to have your most compelling content towards the top.
+
+**Inlining CSS**
+
+Gmail strips the `<head>` (and, consequently, `<style>`) tags from your email. Therefor your email's CSS needs to be inlined. You know, like old school CSS:
+
+```html
+<table class="menu" style="padding:0;text-align:center;vertical-align:top;width:auto">
+```
+
+Because media queries cannot be inlined, they need to be moved into the `<body>` of the email. Our inliner does that for you.
+
+If you're using Sass with the ZURB stack, you enjoy the luxury of automatic inlining when running `npm run build`. You'll want to do this before you test or send your email.
+
+If you are using the CSS version, you can use our [web inliner](http://foundation.zurb.com/emails/inliner.html).
+
+## HTML
+
+
## CSS
-https://www.campaignmonitor.com/css/b/
+**CSS Support**
+Support of CSS properties varies greatly between email clients. You're best off sticking with the basics and not getting to fancy.
+
+This guide will really save you some pain when writing CSS:
+[CSS Support Chart](https://www.campaignmonitor.com/css/b/)
+
+For some things you can do and work-arounds, see the <a href="#progressive-enhancement">Progressive Enhancement</a> section below.
+
+## JavaScript
+
+Nope. JavaScript is not a reality in emails.
+
+**Structure and alignment:**
+
+
+**Colors:**
+- It's better to use full 6 digit hex codes colors in HTML emails (#ffffff vs #fff). Although all the major email clients support short hex colors, Outlook.com (Hotmail), Lotus Notes 6.5, 7 and 8 do not.
+- RGB's are supported all the major email clients but RGBA's are only supported in IOS, Apple Mail, Gmail, and Android 4 (Gmail).
+- Background colors work across all email clients as well as color for fonts.
+
+
+**Margin and Padding:**
+
+- Outlook 2007, 2010, and 2013 does not support "padding" in `<p>`, `<div>` or `<a>` tags. Use margin instead.
+- Forget about using CSS positioning like `top`, `bottom`, `relative`, `absolute`.
+- Margin is universally supported BUT you may see some inconsistencies in Outlook 2007, 2010, and 2013. Padding is safer. Also, it is known that Outlook.com does not support the margin property. The odd thing is Outlook.com does support margin with a capital "M".
+Use it like this:
+
+ ```
+ margin: 10px;
+ Margin: 10px; // fallback for Outlook.com
+ ```
+
+## Images
+
+
+<a id="progressive-enhancement"></a>
## Progressive Enhancement
Link to an external stylesheet. Not many email clients support this, best to just forget it.
Background-image / Background-position. Gmail is also the culprit on this one.
Clear your floats. Gmail again.
-Margin. Yep, seriously, Hotmail ignores margins. Basically any CSS positioning at all doesn't work.
+
+Main things to keep in mind, since they're hard to believe...
+
+1. Only use inline style.
+
+2. Just give in and nest tables. It's terrible, but reliable everywhere.
+
+3. Margin and padding is not completely supported (depending on DOM element).
+ Mostly just not Outlook > 2003, which is insane.
+
+4. Apply style to divs and not many other tags.
+
+5. Bullet lists will look different, so use a table.
+
+6. Spacers are your friend. Or more like your stupid roomate,
+ that you can strangely rely on.
+
+7. You must include text formatting in every div layer. Remember Dreamweaver?
+
+8. Vertical spacing can be greater between elements. Combat that...
+
+ 8a. Add a css style of "display:block" to all image elements
+ (including spacers).
+
+ 8b. Place <div> tags around every table and within every
+ <td> that contains content. Also applies to <img> only cells.
+ Some email clients will register a space after the image
+ if there is not a closing div tag immediately following it.
+
+ 8c. Any div that is shorter than 14 pixels (or the line-height)
+ should have it's height specified with CSS and the line height.
+
+9. Most CSS is not available, you can't get fancy.
+ Check out this great reference: http://www.campaignmonitor.com/css
+
+
+Reduce Image Size - Refer back to #7 above, there is no guarantee the recipient of your email will have wifi and waiting for images to load is a guaranteed to annoy some of your recipients.
+
+
+Increase Text Size - Don’t make users squint to read what you sent them, shorten the message a bit and increase the size (including links and CTAs) to make sure they are able to see and understand everything clearly.
Quick tips!
Just like in web design, it doesn't hurt to think above the fold. Meaning what users will see before they have to scroll.
Use your footer like a footer. This is a great place for lots of things including phone numbers and addresses, about information, unsubscribe options, and perhaps a little reminder of what this email is and why the reader is on the list.
OBEY THE LAW. The CAN-SPAM act became law on Jan. 1, 2004. It says there many things you must do as a commercial email-er. Highlights are basically don't be deceptive, and that you MUST include a physical mailing address as well as a working unsubscribe link.
-#
\ No newline at end of file
+
+## Testing
+
+Test, test, and test again. After you have an inlined version of your email, you should test it on as many devices and email clients as you can.
+
+The two top testing services out there are:
+[Litmus](https://litmus.com/)
+[Email on Acid](https://www.emailonacid.com/)
+
+If you're not sure where to start, you can see the [Email Client Market Share](http://emailclientmarketshare.com/) by Litmus
+
+Foundation for Emails is tested on the most popular clients. You can also test on the clients listed in our [compatability guide](compatibility.html)
+
+These services make testing on lots of email clients and devices much faster. Still, nothing beats testing on a real device.
\ No newline at end of file