Wayne Pan

tech | js | ui | ajax | life | mobile
Filed under:

css_sprites.png
CSS Sprite Generator

A very useful tool has just been released by the guys at website-performance.org. It’s web app that generates a png and CSS rules for easy CSS sprites. What’s a CSS sprite? Best explained below.

CSS sprites are a way to reduce the number of HTTP requests made for image resources referenced by your site. Images are combined into one larger image at defined X and Y coorindates. Having assigned this generated image to relevant page elements the background-position CSS property can then be used to shift the visible area to the required component image.

In other words, take all those small icons on your website that are individual files, zip them up, use CSS Sprite Generator, download 1 .png and apply some CSS rules. This reduces the amount of requests to your server.

Posted by Wayne on Friday, September 28th, 2007


You can follow any responses to this entry through the magic of "RSS 2.0" and leave a trackback from your own site.

Post A Comment

mt