<?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>SteveLove.org &#187; background-repeat</title>
	<atom:link href="http://stevelove.org/tag/background-repeat/feed/" rel="self" type="application/rss+xml" />
	<link>http://stevelove.org</link>
	<description>Code, Literature and Other Worthless Pursuits</description>
	<lastBuildDate>Mon, 28 Jun 2010 21:53:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>PNG background-repeat bug in Internet Explorer 7 and 8</title>
		<link>http://stevelove.org/2009/07/10/png-background-repeat-bug-in-internet-explorer-7-and-8/</link>
		<comments>http://stevelove.org/2009/07/10/png-background-repeat-bug-in-internet-explorer-7-and-8/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 16:17:01 +0000</pubDate>
		<dc:creator>Steve Love</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[background-repeat]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://stevelove.org/?p=111</guid>
		<description><![CDATA[Apparently Internet Explorer 7 and 8 still haven&#8217;t gotten PNG quite right. While working on one of my current projects, I stumbled onto a bug with repeating PNG background images. For this project, I have a page template with several container elements that all have a 1 pixel by 1 pixel PNG background set to [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently Internet Explorer 7 and 8 still haven&#8217;t gotten PNG quite right. While working on one of my current projects, I stumbled onto a bug with repeating PNG background images. <span id="more-111"></span></p>
<p>For this project, I have a page template with several container elements that all have a 1 pixel by 1 pixel PNG background set to repeat, and it looks great when testing it in IE 7 and IE 8. So, I created my next page template with the same styling. This time, IE 7 and 8 both choked when handling the background-repeat. Instead of repeating, both of these browsers inexplicably tried to stretch the 1&#215;1 image across the entire container. The PNG happened to have 60 percent alpha transparency, but I&#8217;m not sure that matters. A coworker suggested making it a 10&#215;10 pixel image instead, just to see what happens. Surprise, surprise. That fixed it.</p>
<p>I did a little more searching to see if anyone else had come across this and found <a href="http://aspirium.net/bjohn/ie-7-ie-8-png-bug/">this recent blog post</a>. The author also found that this bug appears to occur at random, and that a 4&#215;4 pixel image solved his problem. Since there&#8217;s <del datetime="2009-07-27T19:19:58+00:00">no</del> very little file size difference between 10&#215;10 and 1&#215;1, I&#8217;ll stick with the 10&#215;10. But I agree with him that this bug created a cool effect, and it would be great if it could be replicated at will.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevelove.org/2009/07/10/png-background-repeat-bug-in-internet-explorer-7-and-8/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

