Utilizing the CSS style tip shared in this post, I successfully designed a custom upload button. However, the new challenge is to ensure that the entire button area changes the mouse pointer icon to a hand.
You can view my partial solution here (jSFiddle). Currently, the cursor only switches to a hand when hovering over the right portion of the button (tested in the latest version of Firefox).
The CSS code is also available on jSFiddle.
<span id="uploadMask">
<input type="file" multiple="multiple" name="file" id="file_upload">
<span class="button">Select Documents</span>
</span>
The CSS code on jSFiddle looks like this:
#uploadMask {
width:160px;
display: block;
float:left;
overflow: hidden;
height:32px;
margin-right: 5px;
position: relative;
}
#uploadMask input {
position: absolute;
top:0;
bottom: 0;
right:0;
opacity: 0;
z-index: 2;
cursor: pointer;
}
#uploadMask .button {
background:#ccc;
line-height:24px;
padding:5px 15px;
display:block;
}
Any suggestions or thoughts on how to rectify this issue?