UX & Product Designer

Chi Wai Li



How to style a 'Choose File' Upload button

For some silly reason standard css wouldn’t allow the file upload button to be styled. Naturally the very smart people have found ways around this. Although there are various method, I like this simple one the most. The HTML <div id=”file” class=”btn”>Upload Photo</div> <input type=”file” name=”file” /> The CSS #file { display:none; }​ The Javascript […]