Chrome default focus outline

BurebistaRuler picture BurebistaRuler · Feb 7, 2012 · Viewed 15.5k times · Source

I'm trying to remove default focus froom chrome and it works with outline:none; in the same time I want to add an box-shadow but it not working for select .

*:focus { outline:none; }

input[type="text"]:focus,input[type="checkbox"]:focus,input[type="password"]:focus,
select:focus, textarea:focus,option:focus{
box-shadow:0 0 2px 0 #0066FF;
-webkit-box-shadow:0 0 9px 0 #86AECC;
z-index:1;
}

fiddle: http://jsfiddle.net/DCjYA/309/

Answer

mcmwhfy picture mcmwhfy · Feb 7, 2012

Try this:

* { 
    outline-color: lime;
}