<?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: Background transparency in CSS</title>
	<atom:link href="http://blog.niceperson.org/2005/01/18/background-transparency-in-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/</link>
	<description>Making it up as I go along.</description>
	<lastBuildDate>Mon, 07 Feb 2011 18:34:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Wil Barath</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-2993</link>
		<dc:creator>Wil Barath</dc:creator>
		<pubDate>Thu, 16 Sep 2010 15:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-2993</guid>
		<description>Here&#039;s the method I use.  It is fluid.

.container {
  position:relative;
  width:16em;
}
.trans {
  position:absolute; 
  height:100%; /* fills parent block */
  background: #C0C0C0; /* visible on white bg */
  filter: alpha(opacity=50);
  -moz-opacity: 0.50;
  opacity: 0.50;
}

div class=container
  div class=transparent /div
  content to go over transparent bg
/div</description>
		<content:encoded><![CDATA[<p>Here's the method I use.  It is fluid.</p>
<p>.container {<br />
  position:relative;<br />
  width:16em;<br />
}<br />
.trans {<br />
  position:absolute;<br />
  height:100%; /* fills parent block */<br />
  background: #C0C0C0; /* visible on white bg */<br />
  filter: alpha(opacity=50);<br />
  -moz-opacity: 0.50;<br />
  opacity: 0.50;<br />
}</p>
<p>div class=container<br />
  div class=transparent /div<br />
  content to go over transparent bg<br />
/div</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Connor Speers</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-2876</link>
		<dc:creator>Connor Speers</dc:creator>
		<pubDate>Thu, 12 Aug 2010 03:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-2876</guid>
		<description>I just found this solution! It works in my browser (Chrome), and it should work in other browsers too.
Use the rgba colorspace.

http://robertnyman.com/2010/01/11/css-background-transparency-without-affecting-child-elements-through-rgba-and-filters/</description>
		<content:encoded><![CDATA[<p>I just found this solution! It works in my browser (Chrome), and it should work in other browsers too.<br />
Use the rgba colorspace.</p>
<p><a href="http://robertnyman.com/2010/01/11/css-background-transparency-without-affecting-child-elements-through-rgba-and-filters/" rel="nofollow">http://robertnyman.com/2010/01/11/css-background-transparency-without-affecting-child-elements-through-rgba-and-filters/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-2054</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 08 Oct 2009 09:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-2054</guid>
		<description>hmm okay:
.box-div is surrounding the other two divs

.bgtrans is an empty div inside .box-div

.text-div is inside .box-div and contains the text</description>
		<content:encoded><![CDATA[<p>hmm okay:<br />
.box-div is surrounding the other two divs</p>
<p>.bgtrans is an empty div inside .box-div</p>
<p>.text-div is inside .box-div and contains the text</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-2053</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 08 Oct 2009 09:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-2053</guid>
		<description>that did it for me. maybe there is a solution for the dynamic height in ie6?!?

CSS:
.box {
overflow: hidden;
height: auto !important;
height: 100px; /* height has to be specified here for IE6 */
}
.bgtrans {
position: absolute;
left: 0;
top: 0;
display: block;
height: 10000px;
width: 10000px;
background-color: lime;
opacity: 0.5;
-moz-opacity: 0.5;
-khtml-opacity: 0.5;
filter:alpha(opacity=50);
z-index: 1;
}
.text {
float: left;
position: relative;
z-index: 2;
}

HTML:

	
	blabla
</description>
		<content:encoded><![CDATA[<p>that did it for me. maybe there is a solution for the dynamic height in ie6?!?</p>
<p>CSS:<br />
.box {<br />
overflow: hidden;<br />
height: auto !important;<br />
height: 100px; /* height has to be specified here for IE6 */<br />
}<br />
.bgtrans {<br />
position: absolute;<br />
left: 0;<br />
top: 0;<br />
display: block;<br />
height: 10000px;<br />
width: 10000px;<br />
background-color: lime;<br />
opacity: 0.5;<br />
-moz-opacity: 0.5;<br />
-khtml-opacity: 0.5;<br />
filter:alpha(opacity=50);<br />
z-index: 1;<br />
}<br />
.text {<br />
float: left;<br />
position: relative;<br />
z-index: 2;<br />
}</p>
<p>HTML:</p>
<p>	blabla</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sNOWsh</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-1972</link>
		<dc:creator>sNOWsh</dc:creator>
		<pubDate>Tue, 23 Jun 2009 20:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-1972</guid>
		<description>this will sort it:

one div element to hold the opaque area 65%
2nd nested div to hold content.

We use it on our search form.....

.trans_holder {
	background: #2f7aa4;
	filter: alpha(opacity=65);
	-moz-opacity: 0.65;
	opacity: 0.65;
	}
	
.content_container {
	width: 500px;	
	position: relative;
	color: #ffffff;</description>
		<content:encoded><![CDATA[<p>this will sort it:</p>
<p>one div element to hold the opaque area 65%<br />
2nd nested div to hold content.</p>
<p>We use it on our search form.....</p>
<p>.trans_holder {<br />
	background: #2f7aa4;<br />
	filter: alpha(opacity=65);<br />
	-moz-opacity: 0.65;<br />
	opacity: 0.65;<br />
	}</p>
<p>.content_container {<br />
	width: 500px;<br />
	position: relative;<br />
	color: #ffffff;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alpha</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-515</link>
		<dc:creator>Alpha</dc:creator>
		<pubDate>Fri, 28 Apr 2006 18:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-515</guid>
		<description>I&#039;m still getting referals from this page, so I thought I&#039;d update the link to be current.

The one under my name is the current link.

I also fixed the problem with the scrollbar and the other difference between IE and Mozilla/Firefox, but that was so long ago that I don&#039;t remember what I did.

I suppose I should just say read the code.</description>
		<content:encoded><![CDATA[<p>I'm still getting referals from this page, so I thought I'd update the link to be current.</p>
<p>The one under my name is the current link.</p>
<p>I also fixed the problem with the scrollbar and the other difference between IE and Mozilla/Firefox, but that was so long ago that I don't remember what I did.</p>
<p>I suppose I should just say read the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alpha</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-514</link>
		<dc:creator>Alpha</dc:creator>
		<pubDate>Fri, 05 Aug 2005 21:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-514</guid>
		<description>Hmm my link disappeared &lt;a href=&quot;http://weblog.nightstudies.net/&quot; rel=&quot;nofollow&quot;&gt;transparency example&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hmm my link disappeared <a href="http://weblog.nightstudies.net/" rel="nofollow">transparency example</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alpha</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-513</link>
		<dc:creator>Alpha</dc:creator>
		<pubDate>Fri, 05 Aug 2005 21:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-513</guid>
		<description>There is a hack that makes transparent PNG&#039;s work in IE

Use
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader

You can see an example at my weblog with a transparent forground image scrolling in front of a stationary background.

There&#039;s a weirdness where the scrollbar is covered up if you make the window too narrow.  I didn&#039;t write the code and don&#039;t know if there&#039;s a work around for that.</description>
		<content:encoded><![CDATA[<p>There is a hack that makes transparent PNG's work in IE</p>
<p>Use<br />
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader</p>
<p>You can see an example at my weblog with a transparent forground image scrolling in front of a stationary background.</p>
<p>There's a weirdness where the scrollbar is covered up if you make the window too narrow.  I didn't write the code and don't know if there's a work around for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aquarion</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-502</link>
		<dc:creator>Aquarion</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-502</guid>
		<description>Not impossible, but difficult. The best way currently is probably to create a semi-transparent PNG file and use it as the background, which will work in Moz, Opera &amp; IE Mac at once, but will show up in IEWin as a murky gray. To fix this, you&#039;ll need the &lt;a href=&quot;http://dean.edwards.name/IE7/&quot;&gt;IE7&lt;/a&gt; hack.</description>
		<content:encoded><![CDATA[<p>Not impossible, but difficult. The best way currently is probably to create a semi-transparent PNG file and use it as the background, which will work in Moz, Opera &#038; IE Mac at once, but will show up in IEWin as a murky gray. To fix this, you'll need the <a href="http://dean.edwards.name/IE7/">IE7</a> hack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurabelle</title>
		<link>http://blog.niceperson.org/2005/01/18/background-transparency-in-css/comment-page-1/#comment-503</link>
		<dc:creator>Laurabelle</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.niceperson.org/wordpress/2005/01/18/background-transparency-in-css/#comment-503</guid>
		<description>Aha, thank you. The transparent PNG does the trick.

I don&#039;t think that I&#039;m particularly going to worry about IE. I applaud the efforts of those writing IE7, but if I hack my site to fix Microsoft&#039;s stupid browser, that creates little incentive for users to switch to something better. I don&#039;t expect J. Random Surfer to switch just because my site doesn&#039;t look quite so pretty for him, but if he notices, it might be a start.

Hmm. I think I&#039;ll write a page about how IE breaks my site and display a link to it only when users load my site in IE. Maybe someone will read it and learn something.</description>
		<content:encoded><![CDATA[<p>Aha, thank you. The transparent PNG does the trick.</p>
<p>I don't think that I'm particularly going to worry about IE. I applaud the efforts of those writing IE7, but if I hack my site to fix Microsoft's stupid browser, that creates little incentive for users to switch to something better. I don't expect J. Random Surfer to switch just because my site doesn't look quite so pretty for him, but if he notices, it might be a start.</p>
<p>Hmm. I think I'll write a page about how IE breaks my site and display a link to it only when users load my site in IE. Maybe someone will read it and learn something.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

