how to remove dotted border around the link in IE7

Mo. picture Mo. · Aug 17, 2012 · Viewed 31.3k times · Source

There is border around button and link when click.

enter image description here

enter image description here

could anyone help me solution to remove it.

Answer

darma picture darma · Aug 17, 2012

You can preset it like that :

:focus{
    outline:0; /*removes the dotted border*/
}

But remember (for accessibility reasons) to set the style "later" in your CSS file to something more visible. For example :

a:focus, a:active{
    color:#ff5500; /*different color than regular*/
}
input[type=submit]:focus, input[type=submit]:active{
    background-color:#444; /*different color than regular*/
}