Professional Documents
Culture Documents
Is There A Way To Set Width of For Showing in Firefox? - Stack Overflow PDF
Is There A Way To Set Width of For Showing in Firefox? - Stack Overflow PDF
x Dismiss
Sign up
All the CSS attributes apply to the <input type='file'/> don't work on FF, but work on most
other browsers.
3 Answers
but attribute 'size' is measured in characters (font & font size dependent), and it's hard to measure
jondinham Nov 25 '11 at 14:12
1 It's still the only way. Other than that, what you are trying to do isn't possible as FF doesn't support it.
Chris Felstead Nov 25 '11 at 14:14
3 This does not work, after selecting a very long file name, it still exceeds the boundaries of the input field.
citizen conn Apr 23 '14 at 21:11
I wouldn't have a clue if anyone still finds this thread, but just in case...
input[type="file"] {
max-width: 100%;
}
...worked for me. Cuts the overlap off, but at least it doesn't over- or underlap anymore
https://stackoverflow.com/questions/8266358/is-there-a-way-to-set-width-of-input-type-file-for-showing-in-firefox Page 1 of 2
Is there a way to set width of <input type='file'/> for showing in Firefox? - Stack Overflow 5/30/17, 5)24 PM
Chris
91 1 1
What if
For me works in FF 37.0.1. But possibly in older versions does not work
https://stackoverflow.com/questions/8266358/is-there-a-way-to-set-width-of-input-type-file-for-showing-in-firefox Page 2 of 2