<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: How To Use CSS in HTML Emails</title>
	<atom:link href="http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/feed/" rel="self" type="application/rss+xml" />
	<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/</link>
	<description>Derek Gulbranson\'s Weblog</description>
	<pubDate>Thu, 11 Mar 2010 06:07:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: qwan</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-86017</link>
		<dc:creator>qwan</dc:creator>
		<pubDate>Mon, 20 Jul 2009 10:25:44 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-86017</guid>
		<description>A good article but it never helped me.
How do you put a background image when google and hotmail strips the background image attributes from your inline css?
Also it strips out the position:absolute.
I used this to workaround the background issue.
used a container div without any position attirbute but set it to the width and hieght of the background image. Then I put in a div at the end of the all the divs which contained the background image.(as an image not a background) and postioned it absolutely at top 0 and left 0. I set the z-index to -100.
This is turning into a big story.
Lets cut it short. I put in the heading with a margin 200. But that started giving weird problems. I did not give any postion attribute and the it did not work(obviously).
All I am trying to say that there is not way to make a mailer that has a background image with divs.
I had to use old school tables and slick up the image.
There was a gradient under the text I had to change it to solid color. So that I could add text(otherwise it would not be html just an image, not wonder we some proffessional companies just send you 1 image as the mailer and use imagemaps to define the links.)
I can send you the mailer if you want, I maybe be doing something wrong too.
But I tried everything I knew. 3 days spent the last one spent on tables(nested tables to prevent them from breaking)
BTW hotmail ever strips the border colour tags from inline css.</description>
		<content:encoded><![CDATA[<p>A good article but it never helped me.<br />
How do you put a background image when google and hotmail strips the background image attributes from your inline css?<br />
Also it strips out the position:absolute.<br />
I used this to workaround the background issue.<br />
used a container div without any position attirbute but set it to the width and hieght of the background image. Then I put in a div at the end of the all the divs which contained the background image.(as an image not a background) and postioned it absolutely at top 0 and left 0. I set the z-index to -100.<br />
This is turning into a big story.<br />
Lets cut it short. I put in the heading with a margin 200. But that started giving weird problems. I did not give any postion attribute and the it did not work(obviously).<br />
All I am trying to say that there is not way to make a mailer that has a background image with divs.<br />
I had to use old school tables and slick up the image.<br />
There was a gradient under the text I had to change it to solid color. So that I could add text(otherwise it would not be html just an image, not wonder we some proffessional companies just send you 1 image as the mailer and use imagemaps to define the links.)<br />
I can send you the mailer if you want, I maybe be doing something wrong too.<br />
But I tried everything I knew. 3 days spent the last one spent on tables(nested tables to prevent them from breaking)<br />
<span class="caps">BTW </span>hotmail ever strips the border colour tags from inline css.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-50657</link>
		<dc:creator>Dimitri</dc:creator>
		<pubDate>Thu, 29 May 2008 09:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-50657</guid>
		<description>I can't do that, I am working for a company as a webdesigner, and the signature image is not always the same... after some time we change our signature picture (depending on new marketing actions)</description>
		<content:encoded><![CDATA[<p>I can&#8217;t do that, I am working for a company as a webdesigner, and the signature image is not always the same&#8230; after some time we change our signature picture (depending on new marketing actions)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: derek</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-50571</link>
		<dc:creator>derek</dc:creator>
		<pubDate>Wed, 28 May 2008 19:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-50571</guid>
		<description>Make sure you have an explicit width and height on your image element. Don't let it auto.</description>
		<content:encoded><![CDATA[<p>Make sure you have an explicit width and height on your image element. Don&#8217;t let it auto.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-50533</link>
		<dc:creator>Dimitri</dc:creator>
		<pubDate>Wed, 28 May 2008 13:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-50533</guid>
		<description>After 100 good emails (file - new) with an image in the signature... I always have one bad signature email...


File
New
=&gt;
and then I can see the image being reduced to 10px * 10px


anyone?



By The Way: After a reboot everything is back normal... for 99 times  :-)</description>
		<content:encoded><![CDATA[<p>After 100 good emails (file - new) with an image in the signature&#8230; I always have one bad signature email&#8230;</p>


<p>File<br />
New<br />
=&gt;<br />
and then I can see the image being reduced to 10px * 10px</p>


<p>anyone?</p>



<p>By The Way: After a reboot everything is back normal&#8230; for 99 times  :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: derek</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-2259</link>
		<dc:creator>derek</dc:creator>
		<pubDate>Wed, 22 Nov 2006 20:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-2259</guid>
		<description>Use inline CSS. Only a very limited number of inline CSS works in Gmail, font colors and sizes mostly.</description>
		<content:encoded><![CDATA[<p>Use inline <span class="caps">CSS.</span> Only a very limited number of inline <span class="caps">CSS </span>works in Gmail, font colors and sizes mostly.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Houston berry</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-2256</link>
		<dc:creator>Houston berry</dc:creator>
		<pubDate>Wed, 22 Nov 2006 18:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-2256</guid>
		<description>How do you get CSS to work in Google mail?</description>
		<content:encoded><![CDATA[<p>How do you get <span class="caps">CSS </span>to work in Google mail?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous email</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-919</link>
		<dc:creator>anonymous email</dc:creator>
		<pubDate>Wed, 09 Aug 2006 05:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-919</guid>
		<description>Unfortunatelly CSS in HTML emails are used to set tracking bugs. Thats why Google Mail cuts off all dirty stuff from it.</description>
		<content:encoded><![CDATA[<p>Unfortunatelly <span class="caps">CSS </span>in <span class="caps">HTML </span>emails are used to set tracking bugs. Thats why Google Mail cuts off all dirty stuff from it.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: damon</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-93</link>
		<dc:creator>damon</dc:creator>
		<pubDate>Wed, 16 Nov 2005 02:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-93</guid>
		<description>If you're worried about your images not showing up in your html email, you should embed them as inline attachments with  Content-IDs and  reference them  in the &gt;img&lt; tags with the  cid: syntax.

 With all the privacy scares and security threats, more clients are showing up with external images blocked anyway, so the privilage of using image GETs to track your users is going to disappear soon. That being said, The remaining priority would be (like you said) to make sure that the presentation of the message doesn't suffer. Embedding all related content is the only proper way to do that. 

Although tables are deprecated as far as the cutting edge coder is concerned, they are far from being dropped by the browser developers or the W3C for that matter.

 Some of us still remember the days when the font tag wasn't even supported by all browsers... ok.. i'm going to stop now.. i'm starting to show my age. lol</description>
		<content:encoded><![CDATA[<p>If you&#8217;re worried about your images not showing up in your html email, you should embed them as inline attachments with  Content-IDs and  reference them  in the &gt;img&lt; tags with the  cid: syntax.</p>

<p> With all the privacy scares and security threats, more clients are showing up with external images blocked anyway, so the privilage of using image <span class="caps">GET</span>s to track your users is going to disappear soon. That being said, The remaining priority would be (like you said) to make sure that the presentation of the message doesn&#8217;t suffer. Embedding all related content is the only proper way to do that. </p>

<p>Although tables are deprecated as far as the cutting edge coder is concerned, they are far from being dropped by the browser developers or the <span class="caps">W3C </span>for that matter.</p>

<p> Some of us still remember the days when the font tag wasn&#8217;t even supported by all browsers&#8230; ok.. i&#8217;m going to stop now.. i&#8217;m starting to show my age. lol</p>]]></content:encoded>
	</item>
	<item>
		<title>By: derek</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-77</link>
		<dc:creator>derek</dc:creator>
		<pubDate>Tue, 13 Sep 2005 18:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-77</guid>
		<description>Adrian, have you tried using the nosend="1" attribute on the img tag? Although it's undocumented, I believe the purpose of that attribute is to prevent what's happening to your images. Aside from that, I think it would be more stable to use absolute URLs. Whenever I have to include images in an email, I always upload the images to a web server and use the absolute URL to the image on the server. This also precludes the need to include "attachments" with each outgoing email. Absolute URLs combined with the nosend attribute should make the images pretty stable. 

I'm assuming you are comfortable with editing the HTML of your signature. And just  FYI, the HMTL for your signature can be found at C:/Documents &amp; Settings/*your user id*/Application Data/Microsoft/Signatures.</description>
		<content:encoded><![CDATA[<p>Adrian, have you tried using the nosend=&#8221;1&#8243; attribute on the img tag? Although it&#8217;s undocumented, I believe the purpose of that attribute is to prevent what&#8217;s happening to your images. Aside from that, I think it would be more stable to use absolute <span class="caps">URL</span>s. Whenever I have to include images in an email, I always upload the images to a web server and use the absolute <span class="caps">URL </span>to the image on the server. This also precludes the need to include &#8220;attachments&#8221; with each outgoing email. Absolute <span class="caps">URL</span>s combined with the nosend attribute should make the images pretty stable. </p>

<p>I&#8217;m assuming you are comfortable with editing the <span class="caps">HTML </span>of your signature. And just  <span class="caps">FYI, </span>the <span class="caps">HMTL </span>for your signature can be found at C:/Documents &amp; Settings/*your user id*/Application Data/Microsoft/Signatures.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian D.</title>
		<link>http://derekgulbranson.com/2005/08/05/how-to-use-css-in-html-emails/comment-page-1/#comment-75</link>
		<dc:creator>Adrian D.</dc:creator>
		<pubDate>Tue, 13 Sep 2005 11:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://derekgulbranson.com/?p=59#comment-75</guid>
		<description>Sorry:

so the consequences are that the images aren't displayed anymore.</description>
		<content:encoded><![CDATA[<p>Sorry:</p>

<p>so the consequences are that the images aren&#8217;t displayed anymore.</p>]]></content:encoded>
	</item>
</channel>
</rss>
