Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Remove dotted that appears when button is clicked

Tags:

css

I'm using IE9 when i clicked a button appears dotted line,Please suggest how to remove that dotted lines.

like image 340
fathima Avatar asked Jul 09 '12 10:07

fathima


4 Answers

For Internet Explorer 9 you can use this:

a:active, a:focus { 
 outline: none; 
 ie-dummy: expression(this.hideFocus=true);
}

I hope this will help you ........

like image 70
Shailender Arora Avatar answered Nov 15 '22 21:11

Shailender Arora


<input class="button" type="submit" id="submitForm" value="SEND" /> 

input[type="submit"] {
    outline: none;
    }

or

<input type="button" id="submitForm" value="SEND" /> 

input[type="button"] {
    outline: none;
    }

should work

like image 43
Oliver Millington Avatar answered Nov 15 '22 21:11

Oliver Millington


The css that seems to remove the dotted outline from inputs and buttons in Internet Explorer 8 and 9:

:root input:focus, :root button:focus {
  outline: none;
}

I found this by viewing the source of the outlook.com sign in page.

like image 36
kevinwmerritt Avatar answered Nov 15 '22 22:11

kevinwmerritt


This is something I wish browsers would not implement by default. I always use the following to reset the dotted line:

a:active,
a:focus,
input:focus {
    border: 0;
    outline: 0;
}
like image 21
Lodder Avatar answered Nov 15 '22 21:11

Lodder