Like a lot of people, I\'d like to customize the ugly input type=file
, and I know that it can\'t be done without some hacks and/or javascript
. But,
The input itself is hidden with CSS visibility:hidden.
Then you can have whatever element you whish - anchor or image.., when the anchor/image is clicked, trigger a click on the hidden input field - the dialog box for selecting a file will appear.
EDIT: Actually it works in Chrome and Safari, I just noticed that is not the case in FF4Beta