0

I would like to translate or delete the "No file selected" etiquette from <input type="file"> without JavaScript or similar.

In many stack overflow answer I found this solution but it doesn't work.

<input type='file' title=" " />
chillin
  • 45
  • 8
  • Does this answer your question? [Styling an input type="file" button](https://stackoverflow.com/questions/572768/styling-an-input-type-file-button) – mx0 Jan 27 '22 at 17:00
  • @mx0 no, it doesn't. I don't want to customize the button but only the text outside it. – chillin Jan 27 '22 at 17:06
  • Please see: [question]:https://stackoverflow.com/q/5138719/18050127 – MrTweety Jan 27 '22 at 17:16
  • If you only want to change the text, then this isn't possible. See here: https://stackoverflow.com/questions/16001586/change-the-no-file-chosen – gru Jan 27 '22 at 17:19
  • If I use `input[type=file] { color: transparent !important; }` the element continues to have the same width as before – chillin Jan 27 '22 at 17:38

1 Answers1

0

You can simply design its color:

<input type='file' title="foobar" style="color: white;" />
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175