-1

Ive styled the :active state of a link already but when you click it in Chrome you get a blue outline as you can see in the 2nd button below:

enter image description here

How can I disable this styling, ideally for all browsers?

Evanss
  • 20,529
  • 79
  • 252
  • 460
  • possible duplicate of [How can I remove the outline around hyperlinks images?](http://stackoverflow.com/questions/814366/how-can-i-remove-the-outline-around-hyperlinks-images) – Stuart Kershaw Mar 04 '14 at 17:23

3 Answers3

4

Adding outline: 0; to the CSS does the trick for form elements and buttons.

Grim...
  • 15,954
  • 7
  • 42
  • 60
1

I believe what you are looking for is the CSS property outline.

For Example

a {
  outline: none;
}
OpenNox
  • 27
  • 1
  • 6
0

a { border: 0 }

You should edit the anchor tag's global CSS, not just for its active state. Also, look into modernizr.

Nathan R
  • 1,100
  • 7
  • 13