Scripsit ssriram:
Is there a way to apply style to form field input type="file" (file
upload component) If so, how?
You can try to set any CSS properties for such an element. Usual CSS caveats
apply to an unusual degree. Browsers probably ignore most of your settings,
and they may apply them inconsistently, since a file input widget is rather
special. For example, if you set background-color for it, what do you set?
The background color of the Browse button, or the filename input box, or
both, or perhaps the background _around_ them?
As a rule of thumb, don't mess up the appearance of form fields. They have
recognizable "boring" appearance for a reason. In particular, leave file
input fields to their default appearance, to help users recognize these
relatively rare monsters.
More info:
http://www.cs.tut.fi/~jkorpela/forms/file.html#present
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/