) there is a button that says "Choose File". The color of it is gray, and I want to change that color. Since it te" /> ) there is a button that says "Choose File". The color of it is gray, and I want to change that color. Since it te" /> ) there is a button that says "Choose File". The color of it is gray, and I want to change that color. Since it te"/>

Is there a way to change the color of the button in a file input?

69 views Asked by At

For file inputs (<input type="file">) there is a button that says "Choose File".enter image description here

The color of it is gray, and I want to change that color. Since it technically is not a <button> element on its own, any styles that apply to <button> elements do not apply to this one. In the inspector, there is no indication that the button even exists, so the UA must provide it by default for file inputs. I did see a different button color on Pinetools though, so it must be possible.

I have no idea how to do this, so any ideas are welcome!

1

There are 1 answers

0
Arajalla Rajesh On

yes,by adding css file you can change the color of the button.