Using css sprites in an image tag

PriedyJed

New Member
I have a sprite where there are all kings of logos in it. I want to get one specific so I'm using this css\[code\].prog_logo { background-image:url('../../image/sprite_logo.png'); }.prog_logo_prime { background-position:0px -81px; width:52px; height:51px; }\[/code\]and in my aspx I create put an image\[code\]<asp:Image ID="imgLogo" CssClass="prog_logo prog_logo_prime" runat="server" />\[/code\]Problems
  • At Opera
PdIOk.jpg
Perfect.
  • At Chrome
COp5M.jpg
White border.
  • At IE 9
B4U12.jpg
The sprite appears with a white border as well.
  • At FF
The image just doesn't appear at all.How can I fix this in all browsers?
 
Back
Top