By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

style for file upload component input type=file

P: n/a

Is there a way to apply style to form field input type="file" (file
upload component) If so, how?

Thanks,

Sunitha Sriram
--
ssriram
------------------------------------------------------------------------
ssriram's Profile: http://www.highdots.com/forums/m166
View this thread: http://www.highdots.com/forums/t190923

Sep 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/

Sep 29 '06 #2

P: n/a

Thank you,

Sunitha Sriram
--
ssriram
------------------------------------------------------------------------
ssriram's Profile: http://www.highdots.com/forums/m166
View this thread: http://www.highdots.com/forums/t190923

Oct 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.