CSS sprite generator
I wrote this post a while back. The content can still be relevant but the information I've linked to may not be available.
At first glance, this may seem like more work because you need to create the master image in your favourite image editing programme and then write the CSS rules ......or you can use this neat CSS Sprite Generator which will combine the images and generate CSS rules for you. I know which method gets my vote.