+8  A: 

One way to do it is to set the image you want to display as a background in a container (td, div, span etc) and then adjust background-position to get the sprite you want.

This technique is shown on the following url:

http://www.guistuff.com/css/css_imagetech1.html

Espo
Just to clarify, you’d set the width and height of the container td, div, span or whatever to 50px to make this work.
Paul D. Waite
+3  A: 

A List Apart should be in anyones list of sites to visit with HTML/CSS/JS problems:

Here's one way of doing sprites, and here's another using JS.

graham.reeds