0

I tested the below code but gain no success:

enter image description here

input[type="text"]:focus, input[type="password"]:focus {
    outline:none;
    -moz-transition: box-shadow 0.3s ease-out 0s;
    background-clip: padding-box;
    border: 1px solid #B6B6B6;
    border-radius: 3px 3px 3px 3px;
    color: #404040;
    font-size: 16px;
    height: auto;
    line-height: 16px;
    padding: 10px;
}

Is there something here I'm missing?

Alireza
  • 6,497
  • 13
  • 59
  • 132

4 Answers4

2

Opera applies a yellow outline to form inputs that have saved login information. I don't think it is possible to override it with CSS.

alpenglow
  • 88
  • 3
0

Instead of using outline:none; try using border:0; given outline:none ll create cross-browser problem...

lakshmi priya
  • 159
  • 11
0

add this in your css which u are using

textarea:focus {
 outline-width: 0;
}
brian d foy
  • 129,424
  • 31
  • 207
  • 592
Sharique Ansari
  • 1,458
  • 1
  • 12
  • 22
0

for me it worked with that addition on Opera/Safari/Chrome

input:focus {
  outline: 0 none;
}
Kris
  • 567
  • 3
  • 11
  • 25