0

I have several img tags inside of a hrefs that I use as buttons and for some reason in IE when I click the img it creates a gray box around the tag, however this only happens in IE. Any ideas on how to remove it?

Here is the code.

<div style="padding-left:115px; text-decoration:none">
<a href="javascript:changecolor(1)" title="Click Again to Change Color" style="cursor:pointer;"><img src="button.png" width="25" height="25" style="margin-top:600px;" /></a>
<a href="javascript:changecolor(2)" title="Click Again to Change Color" style="cursor:pointer; margin-top:600px"><img src="button.png" width="25" height="25" style="margin-top:600px;" /></a>
<a href="javascript:changecolor(3)" title="Click Again to Change Color" style="cursor:pointer; margin-top:600px"><img src="button.png" width="25" height="25" style="margin-top:600px;" /></a>
<a href="javascript:changecolor(4)" title="Click Again to Change Color" style="cursor:pointer; margin-top:600px"><img src="button.png" width="25" height="25" style="margin-top:600px;" /></a>
<a href="javascript:changecolor(7)" title="Click Again to Change Color" style="cursor:pointer; margin-top:600px"><img src="button.png" width="25" height="25" style="margin-top:600px;" /></a>
<a href="javascript:changecolor(6)" title="Click Again to Change Color" style="cursor:pointer; margin-top:600px"><img src="button.png" width="25" height="25" /></a>
</div>

These are the img tags that get a gray striked outline around them when clicked.

user541597
  • 4,247
  • 11
  • 59
  • 87

1 Answers1

1

Just Add This

a
 {
  outline: none;
 }
Jawad
  • 8,352
  • 10
  • 40
  • 45