views:

179

answers:

4

Hello. Can anyone explain how to remove the orange border around text/input boxes? I think it only happens on Chrome to show that the input box is active. Here's the input CSS i'm using:

input {
background-color:transparent;
border: 0px solid;
height:20px;
width:160px;
color:#CCC;
}
+3  A: 

Use border: none; instead.

dannybolabo
Ignore that sorry.
dannybolabo
No, it makes sense. I dunno why I didn't use that. :)
Joey Morani
+1  A: 

I've found the solution.
I used: outline:none; in the CSS and it seems to have worked. Thanks for the help anyway. :)

Joey Morani
That's the focus outline you are removing. It's there for a reason: Usability. Especially keyboard users will hate it if you remove it.
RoToRa
+1  A: 
input:focus{
outline:none;
}

This will do. Orange outline won't show up anymore.

azram19
+1  A: 
textarea:focus, input:focus{
outline:none
}

you may want to add some other way for users to know what element has keyboard focus though for usability.

CEich