css sprite malfunction

alucard0326

New Member
I have a bunch of images that I have consolidated into a single png. I am trying to use these images to make css sprite classes. \[code\]<style>img.plusOne{width:50px;height:50px;background:url(acknowledgement.png) 0 0;}</style><body><img class="plusOne" src="http://stackoverflow.com/questions/14072946/acknowledgement.png" width="1" height="1" /></body>\[/code\]Instead of displaying the first icon in the png which is 50px by 50px, what is happening is that the whole png file is being squeezed into a 50 x 50 icon.
 
Back
Top