How would one go about styling the <input type="file">
button?
Asked
Active
Viewed 804 times
2
-
Haven't you tried Google? A couple of searches should've told you that you can't style it directly. – Bojangles Aug 23 '12 at 14:49
-
this is a Duplicate of http://stackoverflow.com/questions/572768/styling-an-input-type-file-button – Malachi Aug 23 '12 at 14:59
2 Answers
1
With great difficulty!
In general, you can't style it as you would other elements. Workarounds do exist, but none of them are completely satisfactory.

podiluska
- 50,950
- 7
- 98
- 104
0
You can't through CSS. You need to use a JavaScript overlay that hides the display of the File Upload.
Look at http://www.quirksmode.org/dom/inputfile.html for an example

Shamoon
- 41,293
- 91
- 306
- 570