0

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?

rodbv
  • 5,214
  • 4
  • 31
  • 31
  • possible duplicate of [How apply CSS to browse button](http://stackoverflow.com/questions/4365431/how-apply-css-to-browse-button) – Quentin Sep 11 '11 at 09:15

3 Answers3

4

Sorry, this is completely browser-dependant.

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

Community
  • 1
  • 1
Danny T.
  • 1,130
  • 10
  • 23
2

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
  • 377,238
  • 77
  • 533
  • 578
1

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

Manu
  • 28,753
  • 28
  • 75
  • 83