<?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>Design Shack &#187; png</title>
	<atom:link href="http://designshack.net/tag/png/feed" rel="self" type="application/rss+xml" />
	<link>http://designshack.net</link>
	<description>Inspiration, CSS Gallery &#38; Community News</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cross Browser Transparency</title>
		<link>http://designshack.net/articles/cross-browser-transparency/</link>
		<comments>http://designshack.net/articles/cross-browser-transparency/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 13:18:11 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[transparency]]></category>
		<category><![CDATA[transparent]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=448</guid>
		<description><![CDATA[There are many complicated methods to create transparency effects across the various browsers available (Firefox, Safari, Internet Explorer), but it can be simple to achieve this effect using a few CSS tricks. Albeit with a couple of limitations. Transparency rules Mozilla browsers can display transparency, using an effect specified through -moz-opacity: 0.5; where the value [...]]]></description>
			<content:encoded><![CDATA[<p>There are many complicated methods to create transparency effects across the various browsers available (Firefox, Safari, Internet Explorer), but it can be simple to achieve this effect using a few CSS tricks. Albeit with a couple of limitations.</p>
<h2>Transparency rules</h2>
<p>Mozilla browsers can display transparency, using an effect specified through <code>-moz-opacity: 0.5;</code> where the value is between 0 (completely transparent) and 1 (opaque).</p>
<p>Internet Explorer uses a <a href="http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/filter.asp">filter property</a> to allow you to show transparency. It takes the form <code>filter: alpha(opacity=50);</code> where the opacity value is between 0 and 100.</p>
<p>Some other browsers (and future browsers) will conform to the CSS3 specification allowing the property <code>opacity: 0.5;</code> with the value between 0 or 1 as with the Mozilla effect.</p>
<p>The way to get this working in all browsers is simply a matter of using all three rules at the same time:</p>
<pre>
#transparent-area {
	opacity: 0.5;
	-moz-opacity: 0.5;
	filter: alpha(opacity=50);
}
</pre>
<h2>Limitations</h2>
<p>The main problem with the above CSS code is that it is notoriously browser specific, and thus does not conform to valid CSS standards. This doesn&#8217;t stop it working correctly, but does mean that your CSS code won&#8217;t validate. </p>
<p>Also, as new browsers are released and updated you&#8217;ll need to alter the above. Hopefully as they adopt the CSS3 standard more strictly, simply using the <code>opacity: 0.5;</code> rule will suffice.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/cross-browser-transparency/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 208/223 objects using disk: basic

Served from: designshack.net @ 2012-02-09 14:10:08 -->
