Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove the border inside color input

Demonstration: http://jsfiddle.net/WpJRk/

I have a color picker in my page using the new "color" type input:

<input type="color">

However, there is a black "border" inside the element which seems not able to be removed.

enter image description here

There is a 1px black box inside the field.

I don't really want the box inside. Doing this:

-webkit-appearance: none;

doesn't help.

Any solution?

like image 942
Derek 朕會功夫 Avatar asked Jan 01 '14 02:01

Derek 朕會功夫


2 Answers

Try the following CSS ruleset:

input::-webkit-color-swatch {
    border: none;
}
like image 127
int32_t Avatar answered Sep 28 '22 00:09

int32_t


Your jsFiddle doesn't show a box. (At least for me)**Screen Capture**

like image 27
David Corbin Avatar answered Sep 28 '22 02:09

David Corbin