Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  65] [ 1]  / answers: 1 / hits: 40653  / 13 Years ago, thu, june 23, 2011, 12:00:00

hi i was just wondering how you can create you own custom file upload button, because the best i can do is


and what i want to achieve is


if there is anyway of doing this i would be very thankful,
and please can i have answers that explain how to do it with code and not answers with links to websites that allow you to download a button or something like that,Thank You :)

More From » upload


Although some of these answers will create something that looks like you want it to work, they will break down when they try to perform the way that you expect. The file input doesn't style well directly and you will have trouble trying it. However, there is a trick.

The trick is to turn the opacity of the input to 0 and then change the background underneath it to the button style that you want.

.file_button_container input {
height: 47px;
width: 263px;

.file_button_container {
background: transparent url( left top no-repeat;

.file_button_container input {
opacity: 0;

<div class=file_button_container><input type=file /></div>

[#91530] Thursday, June 23, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 598
Total Questions: 110
Total Answers: 114

Location: Vietnam
Member since Sat, Feb 12, 2022
2 Years ago