<?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: CSS Spriting Tips</title>
	<atom:link href="http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/</link>
	<description>Engineering the web</description>
	<lastBuildDate>Fri, 17 May 2013 21:43:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Social Engine Templates</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-209097</link>
		<dc:creator>Social Engine Templates</dc:creator>
		<pubDate>Sun, 30 Aug 2009 06:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-209097</guid>
		<description><![CDATA[At first the sprite approach was very difficult for me because I&#039;d spend so much time trying to calculate everything out... but after a while I got better at knowing how to place the images and now it works great for me! this post was awesome, thanks!]]></description>
		<content:encoded><![CDATA[<p>At first the sprite approach was very difficult for me because I&#8217;d spend so much time trying to calculate everything out&#8230; but after a while I got better at knowing how to place the images and now it works great for me! this post was awesome, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve-o</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-203165</link>
		<dc:creator>Steve-o</dc:creator>
		<pubDate>Wed, 10 Jun 2009 13:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-203165</guid>
		<description><![CDATA[&quot;And I leave you with a thought: What if all images could be g-zipped together on the server and unpacked by the browser? 1 http request, easy to manage, more control of what is cached and for how long.&quot;

mod_deflate...
expires headers...
cache control headers...
etc...

What do you mean &quot;what if?&quot;]]></description>
		<content:encoded><![CDATA[<p>&#8220;And I leave you with a thought: What if all images could be g-zipped together on the server and unpacked by the browser? 1 http request, easy to manage, more control of what is cached and for how long.&#8221;</p>
<p>mod_deflate&#8230;<br />
expires headers&#8230;<br />
cache control headers&#8230;<br />
etc&#8230;</p>
<p>What do you mean &#8220;what if?&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melissa Church</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-202128</link>
		<dc:creator>Melissa Church</dc:creator>
		<pubDate>Tue, 02 Jun 2009 09:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-202128</guid>
		<description><![CDATA[I&#039;ve been meaning to get to sprite-ing on my sites, but my problem is I spend way too much time on Word Press and to be honest I haven&#039;t had much luck designing sprite elements that look any good in WP. I&#039;m thinking I&#039;m missing something when I dig into my themes and start messing with them. Maybe I&#039;m not hooking the files up correctly on the backend?]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve been meaning to get to sprite-ing on my sites, but my problem is I spend way too much time on Word Press and to be honest I haven&#8217;t had much luck designing sprite elements that look any good in WP. I&#8217;m thinking I&#8217;m missing something when I dig into my themes and start messing with them. Maybe I&#8217;m not hooking the files up correctly on the backend?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-201611</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Fri, 29 May 2009 03:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-201611</guid>
		<description><![CDATA[@Jim Plush

You should absolutely use this on your site if you use CSS images, especially for tabs, menus and sprites to avoid image flickering effects.

// Re-enable CSS image cache in IE6 SP1+
if(document.all&amp;&amp;document.execCommand&amp;&amp;!window.opera)
try{document.execCommand(&quot;BackgroundImageCache&quot;,false,true);} catch(e){}

http://evil.che.lu/2006/09/25/no-more-ie6-background-flicker
http://blogs.msdn.com/cwilso/archive/2006/11/07/ie-re-downloading-background-images.aspx
http://msdn.microsoft.com/en-us/library/ms536419(VS.85).aspx

As for the example above, I would use 3 CSS sprites:

One wide sprite with: the 3 green and black and blue large width items
One mid-size sprite with: all the 5x ~160px wide items
One small sprite with: all the remaining ~25px and less circle items

Grouping things of similar size together while giving items some space to &quot;breath&quot; makes total sense.

Even with the examle above, moving the blue part top and the white part a little more more up would have save tons of unused space.]]></description>
		<content:encoded><![CDATA[<p>@Jim Plush</p>
<p>You should absolutely use this on your site if you use CSS images, especially for tabs, menus and sprites to avoid image flickering effects.</p>
<p>// Re-enable CSS image cache in IE6 SP1+<br />
if(document.all&amp;&amp;document.execCommand&amp;&amp;!window.opera)<br />
try{document.execCommand(&#8220;BackgroundImageCache&#8221;,false,true);} catch(e){}</p>
<p><a href="http://evil.che.lu/2006/09/25/no-more-ie6-background-flicker" rel="nofollow">http://evil.che.lu/2006/09/25/no-more-ie6-background-flicker</a><br />
<a href="http://blogs.msdn.com/cwilso/archive/2006/11/07/ie-re-downloading-background-images.aspx" rel="nofollow">http://blogs.msdn.com/cwilso/archive/2006/11/07/ie-re-downloading-background-images.aspx</a><br />
<a href="http://msdn.microsoft.com/en-us/library/ms536419(VS.85)" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms536419(VS.85)</a>.aspx</p>
<p>As for the example above, I would use 3 CSS sprites:</p>
<p>One wide sprite with: the 3 green and black and blue large width items<br />
One mid-size sprite with: all the 5x ~160px wide items<br />
One small sprite with: all the remaining ~25px and less circle items</p>
<p>Grouping things of similar size together while giving items some space to &#8220;breath&#8221; makes total sense.</p>
<p>Even with the examle above, moving the blue part top and the white part a little more more up would have save tons of unused space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ksieke</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-201508</link>
		<dc:creator>ksieke</dc:creator>
		<pubDate>Thu, 28 May 2009 12:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-201508</guid>
		<description><![CDATA[wups.. sry!
@art: but you can also have advantages by using big images in sprites.. just think about reducing the number of requests ;)]]></description>
		<content:encoded><![CDATA[<p>wups.. sry!<br />
@art: but you can also have advantages by using big images in sprites.. just think about reducing the number of requests <img src='http://blog.mozilla.org/webdev/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ksieke</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-201506</link>
		<dc:creator>ksieke</dc:creator>
		<pubDate>Thu, 28 May 2009 12:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-201506</guid>
		<description><![CDATA[Tip for too large sprites: crush them without loosing quality ;)
for png: pngcrush
for gif: gifcicle

fyi: If you use gif or png depends on your sprite-image. Test both, crush them, compare file size and quality. 

mfg, ksieke]]></description>
		<content:encoded><![CDATA[<p>Tip for too large sprites: crush them without loosing quality <img src='http://blog.mozilla.org/webdev/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
for png: pngcrush<br />
for gif: gifcicle</p>
<p>fyi: If you use gif or png depends on your sprite-image. Test both, crush them, compare file size and quality. </p>
<p>mfg, ksieke</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: art</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-199286</link>
		<dc:creator>art</dc:creator>
		<pubDate>Tue, 12 May 2009 03:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-199286</guid>
		<description><![CDATA[never used sprites for big elements like in example, only for small icons or navigation elements]]></description>
		<content:encoded><![CDATA[<p>never used sprites for big elements like in example, only for small icons or navigation elements</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-199197</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 10 May 2009 23:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-199197</guid>
		<description><![CDATA[Sprites are great when used in moderation. I tend to split my images into 3 files:
1. fixed box size - Where the element within which the image is used, is a fixed size, these images can all be crammed together as there is no danger of them being incorrectly displayed with variable content.
2. repeat-y images and vertically variable boxes.
3. repeat-x images and (rare) horizontally variable boxes.

Try it - it makes sense!

And I leave you with a thought: What if all images could be g-zipped together on the server and unpacked by the browser? 1 http request, easy to manage, more control of what is cached and for how long. Images are also then held seperately in memory - if that is indeed beneficial? Would the processor time required to zip/unzip the files outweigh the improved download time though?]]></description>
		<content:encoded><![CDATA[<p>Sprites are great when used in moderation. I tend to split my images into 3 files:<br />
1. fixed box size &#8211; Where the element within which the image is used, is a fixed size, these images can all be crammed together as there is no danger of them being incorrectly displayed with variable content.<br />
2. repeat-y images and vertically variable boxes.<br />
3. repeat-x images and (rare) horizontally variable boxes.</p>
<p>Try it &#8211; it makes sense!</p>
<p>And I leave you with a thought: What if all images could be g-zipped together on the server and unpacked by the browser? 1 http request, easy to manage, more control of what is cached and for how long. Images are also then held seperately in memory &#8211; if that is indeed beneficial? Would the processor time required to zip/unzip the files outweigh the improved download time though?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopal Raju</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-198941</link>
		<dc:creator>Gopal Raju</dc:creator>
		<pubDate>Sat, 09 May 2009 09:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-198941</guid>
		<description><![CDATA[Useful tips! will definitely implement for my site redesign!

Gopal Raju
productivedreams.com
twitter.com/gopalraju]]></description>
		<content:encoded><![CDATA[<p>Useful tips! will definitely implement for my site redesign!</p>
<p>Gopal Raju<br />
productivedreams.com<br />
twitter.com/gopalraju</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Hsu</title>
		<link>http://blog.mozilla.org/webdev/2009/03/27/css-spriting-tips/comment-page-1/#comment-198539</link>
		<dc:creator>Joseph Hsu</dc:creator>
		<pubDate>Tue, 05 May 2009 17:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=325#comment-198539</guid>
		<description><![CDATA[group sprites in seperate images based on usage, eg UI elements into one image and box corners in another, that way you make sure to use what you need.]]></description>
		<content:encoded><![CDATA[<p>group sprites in seperate images based on usage, eg UI elements into one image and box corners in another, that way you make sure to use what you need.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
