<?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: Tip: Using a background image on an image</title>
	<atom:link href="http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: prs09</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-276577</link>
		<dc:creator>prs09</dc:creator>
		<pubDate>Wed, 11 Nov 2009 10:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-276577</guid>
		<description>I learned something new, very interesting, thanks for sharing.</description>
		<content:encoded><![CDATA[<p>I learned something new, very interesting, thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quixote218</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-267556</link>
		<dc:creator>quixote218</dc:creator>
		<pubDate>Sat, 20 Sep 2008 20:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-267556</guid>
		<description>Although a number have comments (hear and at the site) show that many people were not aware of this, and that others were, it&#039;s worth pointing out that it&#039;s very common out on the web -- you just need to look for it. Wikipedia has bee using it for years:

&lt;a href=&quot;http://en.wikipedia.org/wiki/Image:Pamukkale00.JPG&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Image:Pamukkale00.JPG&lt;/a&gt;

Though I must say, what this author does is a really good use of the idea: combining the properties of a JPG compression for fuzzy backgrounds with GIF for animation and transparency. I&#039;ve used a PNG to frame a JPG (a photo image that as a PNG would be huge) to keep from having to cut corners off rectangular images in Photoshop -- and then cut them again whent eh design changes.</description>
		<content:encoded><![CDATA[<p>Although a number have comments (hear and at the site) show that many people were not aware of this, and that others were, it&#8217;s worth pointing out that it&#8217;s very common out on the web &#8212; you just need to look for it. Wikipedia has bee using it for years:</p>
<p><a href="http://en.wikipedia.org/wiki/Image:Pamukkale00.JPG" rel="nofollow">http://en.wikipedia.org/wiki/Image:Pamukkale00.JPG</a></p>
<p>Though I must say, what this author does is a really good use of the idea: combining the properties of a JPG compression for fuzzy backgrounds with GIF for animation and transparency. I&#8217;ve used a PNG to frame a JPG (a photo image that as a PNG would be huge) to keep from having to cut corners off rectangular images in Photoshop &#8212; and then cut them again whent eh design changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pascalopitz</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-267417</link>
		<dc:creator>pascalopitz</dc:creator>
		<pubDate>Mon, 15 Sep 2008 22:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-267417</guid>
		<description>Just to clarify: I applied display block to get proper vertical padding. The padding in the demo is for making the runner (32*32) appear in the middle of the much larger landscape. Padding area + element area = area with BG, in this case bigger than 32*32. Of course this comes down to what you&#039;re trying to achieve. Te way I see it this technique comes in handy for images of picture frames and the likes, that can be applied to standard image sizes without a container element. Hope this makes sense to everyone. 
@dylan: The loading thing is a neat idea, I must say ...</description>
		<content:encoded><![CDATA[<p>Just to clarify: I applied display block to get proper vertical padding. The padding in the demo is for making the runner (32*32) appear in the middle of the much larger landscape. Padding area + element area = area with BG, in this case bigger than 32*32. Of course this comes down to what you&#8217;re trying to achieve. Te way I see it this technique comes in handy for images of picture frames and the likes, that can be applied to standard image sizes without a container element. Hope this makes sense to everyone.<br />
@dylan: The loading thing is a neat idea, I must say &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: someguynameddylan</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-267411</link>
		<dc:creator>someguynameddylan</dc:creator>
		<pubDate>Mon, 15 Sep 2008 17:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-267411</guid>
		<description>I&#039;ve been putting background images on the img element for awhile.  I don&#039;t think a display of block and the padding attributes in CSS are necessary, my implementations are working fine without that.

I like to use a loading gif as the background for when I&#039;m displaying a high quality image, because the loading gif displays and then the image loads in over it.  A really nice effect.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been putting background images on the img element for awhile.  I don&#8217;t think a display of block and the padding attributes in CSS are necessary, my implementations are working fine without that.</p>
<p>I like to use a loading gif as the background for when I&#8217;m displaying a high quality image, because the loading gif displays and then the image loads in over it.  A really nice effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doublerebel</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-267409</link>
		<dc:creator>doublerebel</dc:creator>
		<pubDate>Mon, 15 Sep 2008 16:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-267409</guid>
		<description>I&#039;ve been using this technique for a shadow effect on my &lt;a href=&quot;http://www.doublerebel.com/&quot; rel=&quot;nofollow&quot;&gt;magnifier menu&lt;/a&gt; for the last year.  I scale the image with the magnifier while the background stays centered and does not scale, giving the illusion of perspective.
.
Different effects can be achieved depending on the background-position and other background CSS settings.  (The Web Developer plugin will show the CSS I used :)).  However, there is no way with IE to use two transparent PNGs in this manner, that requires a wrap element.
.
@GlenLipka: I&#039;ve found using background-image is great for custom bullets on LI elements.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using this technique for a shadow effect on my <a href="http://www.doublerebel.com/" rel="nofollow">magnifier menu</a> for the last year.  I scale the image with the magnifier while the background stays centered and does not scale, giving the illusion of perspective.<br />
.<br />
Different effects can be achieved depending on the background-position and other background CSS settings.  (The Web Developer plugin will show the CSS I used :)).  However, there is no way with IE to use two transparent PNGs in this manner, that requires a wrap element.<br />
.<br />
@GlenLipka: I&#8217;ve found using background-image is great for custom bullets on LI elements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlenLipka</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-267406</link>
		<dc:creator>GlenLipka</dc:creator>
		<pubDate>Mon, 15 Sep 2008 16:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-267406</guid>
		<description>I first saw this technique from Jack Slocum in the ExtJS library.  He uses a 1x1 pixel spacer.gif set to 16x16 height/width.  Then he puts the &quot;icon&quot; as a background image.  I thought it was very clever.  You can use sprites that way too for hover effects.</description>
		<content:encoded><![CDATA[<p>I first saw this technique from Jack Slocum in the ExtJS library.  He uses a 1&#215;1 pixel spacer.gif set to 16&#215;16 height/width.  Then he puts the &#8220;icon&#8221; as a background image.  I thought it was very clever.  You can use sprites that way too for hover effects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robhuddles</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-267404</link>
		<dc:creator>robhuddles</dc:creator>
		<pubDate>Mon, 15 Sep 2008 15:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-267404</guid>
		<description>I&#039;m curious as to why you say that you &quot;have&quot; to set display:block on the image. Inline elements can take background images, too.</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious as to why you say that you &#8220;have&#8221; to set display:block on the image. Inline elements can take background images, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vsync</title>
		<link>http://ajaxian.com/archives/tip-using-a-background-image-on-an-image/comment-page-1#comment-267403</link>
		<dc:creator>vsync</dc:creator>
		<pubDate>Mon, 15 Sep 2008 15:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4425#comment-267403</guid>
		<description>I&#039;ve learned something new!!
now I must think of best implementations for this...hmmm...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve learned something new!!<br />
now I must think of best implementations for this&#8230;hmmm&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

