Setting the width of a file upload
Written By Eleni on Aug. 20, 2007.
2 Comments
Report Note
+ Clip This
I am trying to set the width of a file upload input field. The style width attribute doesn't seem to have an affect on the field (in FF atleast). I have found that you can set the size of the field which corresponds to a number of characters, however if you bump up the text size that causes the field to grow. Any idea how to set the file upload at a fixed width?

posure
Written Aug. 20, 2007 / Report /
You're not going to have much (if any) control on the style of a file input since it is a very OS-specific control, CSS isn't consistent. The only way you can really customize a file input it is to use a plugin like Flash or Java, unfortunately.
isdereks
Written Dec. 15, 2007 / Report /
What an old note...
To answer, you can set the width of the file upload field using size="50" or whatever the number of characters wide you want it to be.