<?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>CSS Validation Service, Web Design &#187; Using the CSS3 opacity directive</title>
	<atom:link href="http://maldeetuh.org/tag/using-the-css3-opacity-directive/feed/" rel="self" type="application/rss+xml" />
	<link>http://maldeetuh.org</link>
	<description>Validation of HTML/CSS at W3 Standards</description>
	<lastBuildDate>Mon, 19 Oct 2009 15:31:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using the CSS3 opacity directive</title>
		<link>http://maldeetuh.org/check-cascading-style-sheets-css-and-xhtml-documents-with-style-sheets/using-the-css3-opacity-directive/</link>
		<comments>http://maldeetuh.org/check-cascading-style-sheets-css-and-xhtml-documents-with-style-sheets/using-the-css3-opacity-directive/#comments</comments>
		<pubDate>Tue, 20 May 2008 18:47:57 +0000</pubDate>
		<dc:creator>LaVan</dc:creator>
				<category><![CDATA[CSS Validation Service]]></category>
		<category><![CDATA[Using the CSS3 opacity directive]]></category>

		<guid isPermaLink="false">http://maldeetuh.org/?p=9</guid>
		<description><![CDATA[Using the CSS3 opacity directive is easy and it&#8217;s completely future-proof, assuming that it&#8217;s accepted without changes, which is probably a safe bet. Unfortunately, this only targets modern browsers, such as current versions of FireFox, Opera, Safari &#38; Netscape (which accounts for roughly 30% of our current traffic).
Unfortunately, if a browser doesn&#8217;t render opacity properly, [...]]]></description>
			<content:encoded><![CDATA[<p>Using the CSS3 opacity directive is easy and it&#8217;s completely future-proof, assuming that it&#8217;s accepted without changes, which is probably a safe bet. Unfortunately, this only targets modern browsers, such as current versions of FireFox, Opera, Safari &amp; Netscape (which accounts for roughly 30% of our current traffic).<br />
Unfortunately, if a browser doesn&#8217;t render opacity properly, the results are awful. Visitors might not be able to SEE the content you have, under a nearly transparent element, if their browsers don&#8217;t understand the directive! Not very accessible at all.<br />
When you use opacity, it&#8217;s important to insure that the majority of visitors browsers will render it properly. The first step, is getting Internet Explorer to play nice.<br />
The good news is that Internet Explorer already has a proprietary CSS extension that duplicates the opacity directive. IE has a way of creating effects using visual filters and transitions. (You can demo all the variations of filters and transitions at this demo site).<br />
I wouldn&#8217;t normally recommend using these IE-only CSS extensions for your <a href="http://www.askfrank.net/search-engine-optimization/">website seo</a>, but there&#8217;s one extension that will mimic the CSS3 opacity directive and it comes in handy here. It&#8217;s called the &#8220;Alpha Filter&#8221; and it can be easily applied in CSS file.  <span id="more-9"></span></p>
<p>Code:</p>
<p>#selector {</p>
<p>opacity:0.7;                    /* Modern Browsers */</p>
<p>filter:alpha(opacity=70); /* IE 5.5, IE6 &amp; IE7 */</p>
<p>}</p>
<p>With these two CSS directives, you&#8217;re hitting IE5.5, IE6, IE7 and &#8220;modern browsers&#8221; (i.e., current versions of Safari, Opera, Firefox and Netscape). Together, these account for roughly 97% of our visitors. That&#8217;s generally what we shoot for &#8211; the &#8220;majority&#8221;. (The way I see it, you can kill yourself, trying to get the last 3% or so, or make get the big percentage without a lot of fuss.)<br />
The reason I say this this is &#8220;future-proof&#8221; is that IE6 and IE7 will never understand the &#8220;opacity&#8221; rule and who knows about IE8? But it doesn&#8217;t matter, IE8 will either continue to understand the filter directive or understand the &#8220;opacity&#8221; rule &#8230; either way, you&#8217;re covered.<br />
If you really want to hit a few more browsers (and don&#8217;t care about CSS validation), you can also add these additional directives:<br />
Code:</p>
<p>#selector {</p>
<p>-moz-opacity:0.7;      /* older Mozilla browsers, older versions of Netscape */</p>
<p>-khtml-opacity:0.7;    /* old versions of Safari (1.x) */</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://maldeetuh.org/check-cascading-style-sheets-css-and-xhtml-documents-with-style-sheets/using-the-css3-opacity-directive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
