How to remove the orange or blue border (outline) around text/input boxes? It only happens on Chrome to show that the input box is active.

Here’s the input CSS :

Css Code
input {
background-color: transparent;
border: 0px solid;
height: 20px;
width: 160px;
color: #CCC;
}
[ad type=”banner”]

This border is used to show that the element is focused (i.e. you can type in the input or press the button with Enter). You can remove it, though:

Css Code
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.

Chrome will also apply highlighting to other elements such as DIV’s used as modals. To prevent the highlight on those and all other elements as well, you can do:

Css Code
*:focus {
outline: none;
}

Css Code
input:focus {
outline:none;
}

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

Here is the solution :

Css Code
.form-control:focus {
border-color: inherit;
-webkit-box-shadow: none;
box-shadow: none;
}

Use the following syntax to remove the border of text box and remove the highlighted border of browser style.

Css Code
input {
background-color:transparent;
border: 0px solid;
height:30px;
width:260px;
}
input:focus {
outline:none;
}

Try this code :

Css Code
<input style="border:none" >

This remove orange frame in chrome from all and any element no matter what and where is it

Css Code
*:focus {
outline: none;
}

[ad type=”banner”]

Common for all tags:

Css Code
*:focus {
outline: none;
}

Specific to some tag, ex: input tag

Css Code
input:focus {
outline:none;
}

When an input element set to focus in Web Kit browsers like Safari and Chrome, the browser will put a blurry blue/yellow border around it.

This could be confusing and could make your design look different. To disable this we can use the following code.

Css Code
/* remove border around all input elements */
input:focus {
outline: none;}
/* remove border around all textarea elements */
textarea:focus {
outline: none;}
/* remove border around all select elements */
select:focus {
outline: none;}
/* remove border around all input,textarea and select elements */
input:focus, textarea:focus, select:focus {
outline: none;}
/* remove border around all elements */
:focus {
outline: none;}

Css Code
*:focus {
outline: 0;
}

Note: On focus Use outline:0 in spite of outline:none. It’s valid and better practice.

you can also use:

Css Code
input:focus{
border: transparent;
}

[ad type=”banner”]

Categorized in: