Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to avoid dotted line around check box , when user clicks?

I need to avoid the creation of dotted line around the check box , when user clicks the check box in IE.

See how it appears when the user clicks ,

enter image description here

How do I remove the dotted line around the check box using css ?

like image 485
Human Being Avatar asked Aug 06 '13 09:08

Human Being


4 Answers

Set the outline property to 0:

input {
    outline: 0;
}

It might not work in IE9 (as documented by Chris Coiyer). You might have to use this meta tag:

<meta http-equiv="X-UA-Compatible" content="IE=9" />
like image 86
Terry Avatar answered Sep 24 '22 17:09

Terry


Use a global rule this works on any element which has a focus

*:focus {
outline: none;
}
like image 26
San Avatar answered Sep 22 '22 17:09

San


Try this

input[type='checkbox'] {
  outline:0;
}
like image 42
Eswara Reddy Avatar answered Sep 23 '22 17:09

Eswara Reddy


That's called an outline, try using outline: 0;

like image 38
Tdelang Avatar answered Sep 23 '22 17:09

Tdelang