views:

40

answers:

1

i have a website and when i click on a link, i get this blue border around the link just during the time i am clicking it. When the new page loads, that highlighting is gone.

Here is an example screenshot how it looks right when i click on the link.

How can i stop this from happening?

alt text

+2  A: 

Use outline: 0;

http://www.w3schools.com/CSS/pr_outline.asp
http://css-tricks.com/removing-the-dotted-outline/

Alec
The second article is (based on a quick skim) excellent and does a good job of pointing out the accessibility problems of just using the code you put in the answer. It would be nice to see some of that warning added to the answer itself. The outline property is very simple and doesn't have any security implications, so W3Schools can't go far wrong with it (as they do in many places), but their page is very light weight and best avoided.
David Dorward
The OP was looking for the outline property, which is pretty straight forward; I'm just giving two examples. Feel free to Google for "css outline" and use whatever resource you feel is best.
Alec