Delete border inside color input

Demo: http://jsfiddle.net/WpJRk/

I have a color picker on my page using a new input of type "color":

<input type="color">

However, there is a black “border” inside the element, which, it seems, cannot be removed.

enter image description here

There is a 1px black box in the box.

I do not need a box inside. Performing this action:

-webkit-appearance: none;

Does not help.

Any solution?

+4
source share
4 answers

Try the following set of CSS rules:

input::-webkit-color-swatch {
    border: none;
}
+3
source

Your jsFiddle does not display a field. (At least for me)** Screen Capture **

+1
source

I do not think that you can do what you are trying to do.

<input type="color">is intended to display a color choice, so for an element to indicate what it does by default is black. You can change the color value, as you did, to match the background color ( input type="color">cannot have an empty value), but you still have to struggle with the frame.

0
source

All Articles