<?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: Don&#8217;t kill IE6, degrade it.</title>
	<atom:link href="http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it</link>
	<description>All things CSS, JavaScript &#38; HTML</description>
	<lastBuildDate>Sat, 21 Jan 2012 04:46:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-2717</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Sun, 02 Oct 2011 23:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-2717</guid>
		<description>@&lt;a href=&quot;#comment-2702&quot; rel=&quot;nofollow&quot;&gt;Shaun Donovan&lt;/a&gt; - 

To fix this in IE7 will require a &quot;&lt;a href=&quot;http://mathiasbynens.be/notes/safe-css-hacks&quot; rel=&quot;nofollow&quot;&gt;safe CSS hack&lt;/a&gt;&quot; for IE7 and lower. You can pretty much guarantee rgba to be supported in all major browsers so I would write the CSS like so:

&lt;pre lang=&quot;css&quot;&gt;
color: rgb(255, 255, 255);
color: rgba(255, 255, 255, 0.5);
*color: rgb(255, 255, 255); // IE7 and older
&lt;/pre&gt;

Unfortunately you need to declare rgb twice. Since IE8 works fine with the current solution. If you&#039;re not too concerned with IE9 having transparent text you can use the &lt;code&gt;\9&lt;/code&gt; hack.

&lt;pre lang=&quot;css&quot;&gt;
color: rgba(255, 255, 255, 0.5);
color: rgb(255, 255, 255)\9; // IE9 and older
&lt;/pre&gt;

That reduces the redundancy but excludes IE9 from using rgba which it supports.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-2702" rel="nofollow">Shaun Donovan</a> &#8211; </p>
<p>To fix this in IE7 will require a &#8220;<a href="http://mathiasbynens.be/notes/safe-css-hacks" rel="nofollow">safe CSS hack</a>&#8221; for IE7 and lower. You can pretty much guarantee rgba to be supported in all major browsers so I would write the CSS like so:</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span>;
<span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">&#41;</span>; // IE7 and older</pre></div></div>

<p>Unfortunately you need to declare rgb twice. Since IE8 works fine with the current solution. If you&#8217;re not too concerned with IE9 having transparent text you can use the <code>\9</code> hack.</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">&#41;</span>\<span style="color: #cc66cc;">9</span>; // IE9 and older</pre></div></div>

<p>That reduces the redundancy but excludes IE9 from using rgba which it supports.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun Donovan</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-2702</link>
		<dc:creator>Shaun Donovan</dc:creator>
		<pubDate>Tue, 06 Sep 2011 18:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-2702</guid>
		<description>Great article, thanks.

I have found that applying transparency to text suffers the same problem as &quot;background-color&quot;. If I have 
      color: rgb(255, 255, 255);
      color: rgba(255, 255, 255, 0.5);
IE7 ignores both lines and uses parent definitions
IE8 user the fallback
IE9 user rgba
Any idea how to fix this for IE7?</description>
		<content:encoded><![CDATA[<p>Great article, thanks.</p>
<p>I have found that applying transparency to text suffers the same problem as &#8220;background-color&#8221;. If I have<br />
      color: rgb(255, 255, 255);<br />
      color: rgba(255, 255, 255, 0.5);<br />
IE7 ignores both lines and uses parent definitions<br />
IE8 user the fallback<br />
IE9 user rgba<br />
Any idea how to fix this for IE7?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-2564</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Fri, 27 May 2011 00:31:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-2564</guid>
		<description>@&lt;a href=&quot;#comment-2554&quot; rel=&quot;nofollow&quot;&gt;Jules&lt;/a&gt; - 

If you&#039;re looking to add transparency to IE8 and down you can use MS&#039;s &lt;code&gt;filter&lt;/code&gt; property to do it and you won&#039;t need an image.

&lt;pre lang=&quot;css&quot;&gt;
background-color: transparent;
background-color: rgba(180, 180, 144, 0.6);  /* FF3+, Saf3+, Opera 10.10+, Chrome, IE9 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99B4B490,endColorstr=#99B4B490); /* IE6–IE9 
    zoom: 1;
&lt;/pre&gt;

You can easily generate the &lt;code&gt;filter&lt;/code&gt; CSS needed by going to &lt;a href=&quot;http://css3please.com/#box_rgba&quot; rel=&quot;nofollow&quot;&gt;css3please.com&lt;/a&gt; and editing the &lt;code&gt;rgba&lt;/code&gt; value there and it will update the &lt;code&gt;filter&lt;/code&gt; value to match it.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-2554" rel="nofollow">Jules</a> &#8211; </p>
<p>If you&#8217;re looking to add transparency to IE8 and down you can use MS&#8217;s <code>filter</code> property to do it and you won&#8217;t need an image.</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span>;
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">180</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">180</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">144</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.6</span><span style="color: #00AA00;">&#41;</span>;  <span style="color: #808080; font-style: italic;">/* FF3+, Saf3+, Opera 10.10+, Chrome, IE9 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99B4B490,endColorstr=#99B4B490); /* IE6–IE9 
    zoom: 1;</span></pre></div></div>

<p>You can easily generate the <code>filter</code> CSS needed by going to <a href="http://css3please.com/#box_rgba" rel="nofollow">css3please.com</a> and editing the <code>rgba</code> value there and it will update the <code>filter</code> value to match it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jules</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-2554</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Mon, 16 May 2011 21:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-2554</guid>
		<description>Is there a way to use a transparent image if the rgba transparency doesn&#039;t work?  I have a menu that I would like to have a transparent background such as background-color:rgba(0,38,100,0.8), but when that isn&#039;t read by older browsers, to use a background image, instead.  Would that even be possible?  My client really likes the transparency, and is not sold on the solid as an alternative at all.</description>
		<content:encoded><![CDATA[<p>Is there a way to use a transparent image if the rgba transparency doesn&#8217;t work?  I have a menu that I would like to have a transparent background such as background-color:rgba(0,38,100,0.8), but when that isn&#8217;t read by older browsers, to use a background image, instead.  Would that even be possible?  My client really likes the transparency, and is not sold on the solid as an alternative at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Css Ninja</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-2306</link>
		<dc:creator>The Css Ninja</dc:creator>
		<pubDate>Fri, 24 Dec 2010 00:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-2306</guid>
		<description>@Vidyut - Thanks, have updated the CSS in the article.</description>
		<content:encoded><![CDATA[<p>@Vidyut &#8211; Thanks, have updated the CSS in the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vidyut</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-2299</link>
		<dc:creator>Vidyut</dc:creator>
		<pubDate>Wed, 22 Dec 2010 17:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-2299</guid>
		<description>Hi,

In your article, you have stated the background-color properties in the wrong sequence. It should be RGB first and then RGBA. All browsers read the RGB, and the ones that are able will replace it with the RGBA.

Unfortunately, there is another problem. IE, our whimsical friend for some reason messes this up too, and will show a blank background. Instead, if you use only the background property instead of background-color, it will work properly - as Mark, in the comment before says.

You should edit the article to reflect that, or some frustrated beginner might end up spending a lot of time troubleshooting.

Vidyut</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>In your article, you have stated the background-color properties in the wrong sequence. It should be RGB first and then RGBA. All browsers read the RGB, and the ones that are able will replace it with the RGBA.</p>
<p>Unfortunately, there is another problem. IE, our whimsical friend for some reason messes this up too, and will show a blank background. Instead, if you use only the background property instead of background-color, it will work properly &#8211; as Mark, in the comment before says.</p>
<p>You should edit the article to reflect that, or some frustrated beginner might end up spending a lot of time troubleshooting.</p>
<p>Vidyut</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-1514</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 25 Apr 2010 20:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-1514</guid>
		<description>Ryan,

You are entirely right concerning rgb/rgba, using:

&lt;pre lang=&quot;css&quot;&gt;
div
{
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
}
&lt;/pre&gt;

...works perfectly.</description>
		<content:encoded><![CDATA[<p>Ryan,</p>
<p>You are entirely right concerning rgb/rgba, using:</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;">div
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span>0<span style="color: #00AA00;">,</span> 0<span style="color: #00AA00;">,</span> 0<span style="color: #00AA00;">&#41;</span>;
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span>0<span style="color: #00AA00;">,</span> 0<span style="color: #00AA00;">,</span> 0<span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.7</span><span style="color: #00AA00;">&#41;</span>;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>&#8230;works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Css Ninja</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-1160</link>
		<dc:creator>The Css Ninja</dc:creator>
		<pubDate>Tue, 09 Feb 2010 03:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-1160</guid>
		<description>That&#039;s an interesting find, in IE6-7 using &lt;code&gt;background-color: rgb();&lt;/code&gt; followed by &lt;code&gt;background-color: rgba();&lt;/code&gt; will fail. I did a similar technique of using rgb/rgba in &lt;a href=&quot;http://www.thecssninja.com/xhtml/advanced-hover-css&quot; rel=&quot;nofollow&quot;&gt;another article&lt;/a&gt; and that works fine in IE6/7 the only difference is that I use &lt;code&gt;background&lt;/code&gt; rather than &lt;code&gt;background-color&lt;/code&gt; that seems to fix it.</description>
		<content:encoded><![CDATA[<p>That&#8217;s an interesting find, in IE6-7 using <code>background-color: rgb();</code> followed by <code>background-color: rgba();</code> will fail. I did a similar technique of using rgb/rgba in <a href="http://www.thecssninja.com/xhtml/advanced-hover-css" rel="nofollow">another article</a> and that works fine in IE6/7 the only difference is that I use <code>background</code> rather than <code>background-color</code> that seems to fix it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-1158</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 09 Feb 2010 01:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-1158</guid>
		<description>hey ninja, just trying this out now, and I can&#039;t seem to maintain backwards compatibility with IE in the same stylesheet (unless of course I use an IE conditional stylesheet).

What I mean is, if I put background-color:rgb() AFTER background-color:rgba(), it will clobber the transparency in all browsers. But if I put rgb() BEFORE rgba(), IE ends up not appling a background color AT ALL, and of course the rgba statement applies normally in Firefox.

If this is true, then we have no choice but to ALWAYS use a conditional stylesheet to reapply a background color in IE browsers every time we want to use RGBA!!!</description>
		<content:encoded><![CDATA[<p>hey ninja, just trying this out now, and I can&#8217;t seem to maintain backwards compatibility with IE in the same stylesheet (unless of course I use an IE conditional stylesheet).</p>
<p>What I mean is, if I put background-color:rgb() AFTER background-color:rgba(), it will clobber the transparency in all browsers. But if I put rgb() BEFORE rgba(), IE ends up not appling a background color AT ALL, and of course the rgba statement applies normally in Firefox.</p>
<p>If this is true, then we have no choice but to ALWAYS use a conditional stylesheet to reapply a background color in IE browsers every time we want to use RGBA!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yMladenov</title>
		<link>http://www.thecssninja.com/css/dont-kill-ie6-degrade-it/comment-page-1#comment-1082</link>
		<dc:creator>yMladenov</dc:creator>
		<pubDate>Sun, 03 Jan 2010 09:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=94#comment-1082</guid>
		<description>Thanks for the tip, CSS Ninja. :)</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, CSS Ninja. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

