<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Absolute Banter &#187; CSS</title>
	<atom:link href="http://www.absolute-advantage.net/banter/categories/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.absolute-advantage.net/banter</link>
	<description>We *heart* the Internet.</description>
	<lastBuildDate>Thu, 25 Mar 2010 08:57:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Designing HTML for Email Campaigns &#8211; Tips and Tricks [Part 1]</title>
		<link>http://www.absolute-advantage.net/banter/2009/07/designing-html-for-email-campaigns-tips-and-tricks-part-1/</link>
		<comments>http://www.absolute-advantage.net/banter/2009/07/designing-html-for-email-campaigns-tips-and-tricks-part-1/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 17:13:57 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Email Marketing]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Programming Tips]]></category>
		<category><![CDATA[Email Campaign]]></category>
		<category><![CDATA[Internet Marketing]]></category>

		<guid isPermaLink="false">http://absolute-advantage.net/banter/?p=61</guid>
		<description><![CDATA[HTML email campaigns are here to stay. With recent announcements from Microsoft claiming that they are basing Outlook&#8217;s HTML content on a MS Word layout, the need design specifically for emails is more important than ever before. Too many people assume that designing HTML emails is just the same as designing a web page &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>HTML email campaigns are here to stay. With recent announcements from Microsoft claiming that they are basing Outlook&#8217;s HTML content on a MS Word layout, the need design specifically for emails is more important than ever before. Too many people assume that designing HTML emails is just the same as designing a web page &#8211; it&#8217;s not. I even have clients that ask me to send an email based on one of their pages on their current site and are shocked about the amount of work that is involved.</p>
<p><a href="http://www.gopomelo.com"><img src="http://absolute-advantage.net/banter/wp-content/uploads/2009/07/gopomelo_mailer.png" alt="Email Campaign GoPomelo" /></a></p>
<p>There are a plethora of factors that you need to consider when designing HTML emails that actually do their job &#8211; get to the recipient and get the message across. The list below is by no means exhaustive but it should put you in good stead.<br />
</br></br><br />
<h1></h1>
<h2>1. Size Matters</h2>
<p>You&#8217;ve designed your HTML content, previewed it in your favourite web browser and it looks fantastic. Well, sorry to burst your bubble. The truth is, most of us read our emails in preview panes and windows half or a quarter of the size of a normal web page. Designing a HTML email for a 1024&#215;768 window will not display well in most email clients.</p>
<p>As a rule of thumb I try to keep the width of the template as narrow as possible without spoiling the look of the email. Most email preview panes are scrollable which means that the height is less of an issue.</p>
<p><strong>Tip: Keep the width of your template quite narrow.<br />
Trick: Center your content so it looks fine in both wide and narrow readers.</strong></p>
<p><strong><br />
</strong></p>
<h2>2. Pretend it&#8217;s 1998 &#8211; Tables Rule, CSS Positioning is Gibberish!</h2>
<p>For all you CSS lovers and web designers out there, I&#8217;m sure that you&#8217;ll agree that it hurts when you are forced to regress into old standards and markup. Well unfortunately, when designing HTML emails you have to do exactly that.</p>
<p>Firstly, you should have seen that attaching a CSS document isn&#8217;t possible. Why don&#8217;t you stick it in the document head tags, I hear you say. Well, this does work &#8211; sometimes. We can use CSS to style the content of the page, however it must be put inline if it is to work properly in email clients. This makes most web designers shudder at the thought but if you want your styling to be displayed in all the different email clients this is the only way to go. And yes, it does mean repeating that styling for your page links!<br />
</br><br />
<img src="http://absolute-advantage.net/banter/wp-content/uploads/2009/07/inline_style.png" alt="Email Campaign Inline styling" /><em><br />
Ugly, but it works</em><br />
</br><br />
CSS positioning is a big no no when designing for HTML emails. You have to imagine you&#8217;re designing for Internet Explorer 5 &#8211; imbrace those sloppy, untidy tables. It will save you heaps of headaches in the long run. Having your divs display differently in 10 email clients is a problem we can all do without.</p>
<p><strong>Tip: Use tables to define your layout.<br />
Trick: Use CSS to style inline, not on a stylesheet or in the header.</strong></p>
<p><strong><br />
</strong></p>
<h2>3. Image to Text Ratio</h2>
<p>Too many images compared to the amount of text is quite hazardous. Spam filters tend to flag image heavy emails. It seems natural to create a flyer style image and then send that as an email. Without any text, it is more likely that the email will be rejected by SPAM filters.</p>
<p>A lot of email clients deactivate images as standard. An email with just one image &#8216;e-flyer&#8217; would get no message across in these cases.</p>
<p><strong>Tip: Use small images and avoid filling the email with an image e-flyer.<br />
Trick: If you don&#8217;t have much text to fill the email with don&#8217;t use more than one or two images.</strong></p>
<p><strong><br />
</strong></p>
<h2>4. Don&#8217;t rely on images to get your message across.</h2>
<p>As already said most email clients don&#8217;t necessarily display the images by default. Gmail, yahoo, and the like de-activate images as standard. It&#8217;s not only until the user clicks &#8216;activate images&#8217; that they will get displayed.</p>
<p>This means that if you use images to display text then your message will not get across. Additionally, if the layout of your email relys too heavily on images then it may look silly when they are de-activated. To test how your email looks without images use the <a title="web design toolbar" href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web Developer</a> add-on for Firefox and select de-activate images. If it doesn&#8217;t make sense without the images you need a re-design.</p>
<p><img src="http://absolute-advantage.net/banter/wp-content/uploads/2009/07/gmail.png" alt="" /></p>
<p><strong>Tip: Don&#8217;t rely on images to get the message across.<br />
Trick: Test the HTML with images deactivated to see how it would appear without images.</strong></p>
<p><strong><br />
</strong></p>
<h2>5. Use the image &#8220;alt&#8221; tag to good effect.</h2>
<p>If you&#8217;re images aren&#8217;t necessarily going to get displayed using the alt tag is essential. This will be the text displayed instead of the image. To take it a step further, you can even style this text by using the style settings for font and background within the image tags. For example,</p>
<div class="code"><code> &lt;img src="myimage.jpg" alt="Image Alternate Text" style="font-family: Arial; font-size:14px; color:#FF000; background: #000; padding:3px" /&gt;</code></div>
<p>will display</p>
<p><img style="font-family: Arial; font-size:14px; color:#FFFFFF; background: #000; padding:3px" src="myimage.jpg" alt="Image Alternate Text" /></p>
<p>when the image myimage.jpg is not displayed.</p>
<p><strong>Tip: Always use the alt tag within images.<br />
Trick: Use the style element to manipulate how alt text and background is displayed when images are deactivated.</strong></p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.absolute-advantage.net/banter/2009/07/designing-html-for-email-campaigns-tips-and-tricks-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
