You all know that IE and FF draws a dotted line around a link when it is focused. When I create custom button using images and stuff, that border around the link makes my buttons look very ugly. Is it possible to remove it using CSS?
I tried:
Code:
a, a:hover, a:visited, a:active {
border:none;
outline:none;
}
but no use. Border is still displayed. I could however achieve it with JavaScript
:
Code:
for(var i=0; i<document.links.length; i++) {
document.links[i].onfocus = function() {this.blur();};
}
But this is very inefficient, relies on JavaScript and can be very slow if there are many links on a page. Did anybody have had this kind of problem? Is there a solution with CSS?