views:

244

answers:

3

I've been looking all over Google for an easy, clean way to change the style of the Browse button of the HTML <input type=file> control, but all solutions I've found so far involve hidden controls, absolute positioning of images, jQuery plugins etc. Is there a way to accomplish this using CSS2 that I've missed?

+1  A: 

No, you didn't miss anything. Its not possible doing this only with CSS.

Manu
+2  A: 

I have not seen this getting done in pure css (if anyone knows let me know). Well here is something that you might find interesting:

http://www.dreamincode.net/forums/showtopic15621.htm

Mostly used CSS, little bit of javascript too.

Sarfraz
+4  A: 

Sorry, this is completely browser-dependant.

Take a look at the question How to rename HTML browse button, the same reasons apply.

Danny T.