--- title: HTML emails category: HTML updated: 2017-08-30 --- ### 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` | (Gmail) | | `E + F`, `E > F` _etc_ | (Outlook, Gmail) | Inline your CSS as much as possible. ### Basic layout ```html
ยทยทยท
``` ### Responsive ```html ``` `