How to remove default chrome style for select Input?


How do I remove the default yellow box border of Selected input and select fields in chrome or any browser like safari? I want to customize input with custom box shadow css. How do I remove the default browser select border?

Problem courtesy of: monk



and add your own style

Solution courtesy of: Sowmya


use simple code for remove default browser style

input { outline: none; }
Discussion courtesy of: Behnam Mohammadi

Are you talking about when you click on an input box, rather than just hover over it? This fixed it for me:

input:focus {
   outline: none;
   border: specify yours;
Discussion courtesy of: Adam

In your CSS add this:

input {-webkit-appearance: none; box-shadow: none !important; }
:-webkit-autofill { color: #fff !important; }

Only for Chrome! :)

Discussion courtesy of: Praveen Kumar

input:-webkit-autofill { background: #fff !important; }

Discussion courtesy of: supersaiyan

Mixin for Less

.appearance (@value: none) {
    -webkit-appearance:     @value;
    -moz-appearance:        @value;
    -ms-appearance:         @value;
    -o-appearance:          @value;
    appearance:             @value;
Discussion courtesy of: Pesulap
textarea, input { outline: none; }


Discussion courtesy of: Nithin Emmanuel

This recipe can be found in it's original form on Stack Over Flow.