SlopeFillers Home SlopeFillers Google Plus Account SlopeFillers Twitter Account SlopeFillers Vimeo Account SlopeFillers Facebook Account SlopeFillers RSS Feed

Ski Resort Marketing

Daily Ideas, Inspiration, and Analysis

US/CA Ind Snapshot
(updated daily)
Total Fol.:
Mo. Growth:
676,397
1.30%
Total Fans:
Mo. Growth:
1,183,585
-65.38%
Total Fol.:
Mo. Growth:
18,859
4.66%
Total Views:
Mo. Growth:
27,178,545
1.68%

Ten Reminders for Coding HTML Email Templates

I’ve done very little coding for email templates. In fact, in the last five years, I can count all such projects on one hand. Recently, I forced myself to not defer the duties of coding a new template to the Ryan Solutions email guru, Kurt, but rather put that task on my to-do list and get up to speed on best practices as well. Here’s a reminder list for me when I do my next template, but also for anyone else who is interested:

1. Layout - Use tables for layouts, not divs.

2. Stylesheets - Don’t use stylesheets. Keep your styling inline, most email programs strip out stylesheets.

3. Padding / Margin - Use empty cells and rows for padding rather than “padding” or “margin” css attributes.

4. Text Areas – Don’t use style=”width: ____;” or width=”" on div or paragraph tags. Outlook ignores them. Define width by the size of the cell the content sits in.

5. H_ Tags – Include a <span style=”color: #000000;”> tag around the text of any header tags (h1,h2,h3, etc.). Hotmail ignores your color assignment and sticks in their own weird scheme.

6. Images – Use style=”display: block” in all IMG tags so you don’t get a gap below your images.

7. Background Images – Best bet, don’t use them. They display inconsistently (if at all) in email programs.

8. Borders – Cell borders seem to never be displayed right with tables. If you need a vertical border, try using cols with width=”1″ and a background color instead.

9. Images & Line-Height – Remember your table’s defined line height. If you have a row with a defined height of 12px and a line-height of 16px, that row will be 16px tall. If an image 8px tall sits in that cell, even with no text around it, you’ll have a gap.

10. Test – Code like it’s 1996 and test like mad.



© SlopeFillers.com 2011   |   Ski Resort Marketing
About   |   Resort Rankings   |   Tools & Resources   |   Contribute   |   Subscribe
Connect on: Twitter   |   Facebook   |   Vimeo
Contact SlopeFillers