Señor Reginold Francis Señor Reginold Francis - 2 years ago 95
HTML Question

HTML File upload field style

I am trying to create a file upload field that has a little bit of style to it, but I seem to be having problems finding examples of this. I know part of the reason is that the field itself varies from browser to browser.

Any ideas how to do this? Or is there a way to do this without using a file element of a form that can be styled?

Answer Source

If what you mean is the text field for the file names, you can use the input[type=file] selector in the css files. For example :

input[type=file] { background-color: red; }

If what you mean is the file selection dialog box, I think it's browser/OS dependent and there's little (if any) you can do about it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download