views:

91

answers:

1

I can change the width of an upload field with the size attribute:

<input type="file" size="20">

But CSS's width, which works fine for regular input fields and other forms controls, seems to have no effect here, even on Firefox:

<input type="file" style="width: 20em">

Is there another way to accomplish this?

+6  A: 

I'm not sure if this will help but this article seems to go quite in-depth into various ways of styling a file-input:

http://www.quirksmode.org/dom/inputfile.html

Michael
@Michael, this is an excellent resource. Not as simple as adding some CSS, but it will do the trick. Thank you for sharing that.
Alessandro Vernet