If you set the width and height of the body element to 4px then you are going to have possible the smallest site in the world.
You can’t really use a sprite on the body element because all the other images in the sprite will be displayed. Sprites are usually used on smaller elements that are either a fixed height and width or aren’t going to grow much so that you can move each sprite out of the way when you make the image.
Sprites are usually good for multiple little icons and things like that but no good if you want to repeat something across or down a fluid height content element.
Thanks for the reply. Ok, that makes sense =) I’ll just do it with some of the header images (which are not repeated), and that should at least remove 3 or 4 seperate images, and put them into one)
You can’t repeat a section of a sprite if there are other sprites to the side of it because it’s the whole image that gets repeated.
If you want to repeat horizontally then you stack your sprites in the image vertically so that only the one sprite you want repeated is in the same horizontal row.
The same applies to vertical repeats and then you would stack the sprites horizontally.
You need various sprites for the various effects.
Have a look at some sprite generators which should five you the general idea.