Making file inputs a pleasure to look at

1 · Eric Bidelman · Dec. 22, 2011, midnight
I’ve seen a lot of people ask how to 1.) apply custom styles to a <input type="file"> and 2.) programmatically open the browser’s file dialog with JavaScript. Turns out, the first is a cinch WebKit. The second comes with a couple of caveats. If you want to skip ahead, there’s a demo....