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 :
[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:
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:
This will do. Orange outline won’t show up anymore.
Here is the solution :
Use the following syntax to remove the border of text box and remove the highlighted border of browser style.
Try this code :
This remove orange frame in chrome from all and any element no matter what and where is it
[ad type=”banner”]
Common for all tags:
Specific to some tag, ex: input tag
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.
Note: On focus Use outline:0 in spite of outline:none. It’s valid and better practice.
you can also use:
[ad type=”banner”]