0

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

.prog_logo { background-image:url('../../image/sprite_logo.png'); }
.prog_logo_prime { background-position:0px -81px; width:52px; height:51px; }

and in my aspx I create put an image

<asp:Image ID="imgLogo" CssClass="prog_logo prog_logo_prime" runat="server" />

Problems

  • At Opera

enter image description here Perfect.

  • At Chrome

enter image description here White border.

  • At IE 9

enter image description here The sprite appears with a white border as well.

  • At FF

The image just doesn't appear at all. Check comments


How can I fix this in all browsers?

Michel Ayres
  • 5,891
  • 10
  • 63
  • 97

1 Answers1

0

How about adding border:none to the css?

.prog_logo { background-image:url('../../image/sprite_logo.png'); border:none; }
Miguel Tavares
  • 715
  • 6
  • 10