Recently I dealed with CSS sprites. It's working fine.
I created a sprite, the .css-file and html-structure. It looks like
.sprites{
         background-image:url('../img/sprite.png');
         background-color:transparent;
         background-repeat:no-repeat;
         height:44px;
         width:44px;
  }
.pic1            {background-position:0 0;}
.pic2            {background-position:-44px 0;}
 <div class="outer"><div class="sprites ${image}"></div></div>
${image} chooses the class if a condition is true.
I create the sprite, css and html manually. I could have used a generator, but the code would have been the same.
Is there a way to create sprites and the css autmatically with e.g. java? If there was a folder with 50 images the program -which has to be written I guess- shall create a sprite and the relevant css-attributes itself. Is this possible? Have you heard of such a program yet?
 
     
     
    