From 62eadce0d27e8a026b12c5dbefc29f8095e8cf52 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Tue, 29 Aug 2017 23:35:17 +0800 Subject: [PATCH] Update html-email --- email.md | 25 ------------------- html-email.md | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ jekyll.md | 19 +++++++++++---- sass.md | 1 + xpath.md | 1 + 5 files changed, 83 insertions(+), 29 deletions(-) delete mode 100644 email.md create mode 100644 html-email.md diff --git a/email.md b/email.md deleted file mode 100644 index f46cb5019..000000000 --- a/email.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: Email -category: HTML ---- - -### Avoid these - - * position (Yahoo, Gmail) - * box-shadow (Yahoo, Gmail) - * height (Outlook) - * width in p/div (Outlook) - * padding in p/div (Outlook) - * data-URI (all webmail) - -### Basic layout - - -
- - - -### Responsive - - @media only screen and (max-device-width: 480px) diff --git a/html-email.md b/html-email.md new file mode 100644 index 000000000..cbb7eca5d --- /dev/null +++ b/html-email.md @@ -0,0 +1,66 @@ +--- +title: HTML emails +category: HTML +layout: 2017/sheet +updated: 201708.29 +--- + +### Properties to avoid + +| Property | Where | +| --- | --- | +| `position` | (Outlook, Gmail, Yahoo) | +| `display` | (Outlook, Gmail) | +| `float` | (Outlook) | +| --- | --- | +| `height` | (Outlook) | +| `width` _in p/div_ | (Outlook) | +| `padding` _in p/div_ | (Outlook) | +| `background` | (Outlook, Gmail) | +| `min-width` | (Outlook) | +| `max-width` | (Outlook) | +| --- | --- | +| `opacity` | (Outlook, Gmail, Yahoo) | +| `box-shadow` | (Outlook, Gmail, Yahoo) | +| --- | --- | +| `rgba()` | (Outlook) | +| `data-uri` | (all webmail) | + +### Selectors to avoid + +| `E[attr]` | (Outlook, Gmail) | +| `E:nth-child(n)` | (Outlook, Gmail) | +| `::before` _and_ `::after` | (Outlook, Yahoo, Gmail) | +| `E F` | (Outlook, Gmail) | +| `E + F`, `E > F` _etc_ | (Gmail) | + +Inline your CSS as much as possible. + +### Basic layout + +```html + + + + + + +
+ ยทยทยท +
+``` + +### Responsive + +```html + +``` + +`