I need to change the color of the browse button when the input type is type="file".I've created a js fiddle for this which works fine in chrome.But the color is not getting changed in IE.Please help. Here's the link to it:http://jsfiddle.net/E42XA/596/
HTML:
<form>
<input type="file" id="fileUpload">
</form>
CSS:
input, label {
display: block;
}
input[type="file"] {
border:none !important;
background-image:none;
cursor: pointer;
}
input[type=file]::-webkit-file-upload-button {
border: none;
margin: 0;
padding: 0;
-webkit-appearance: button;
width: 100px;
background-color:#003b5c !important;
color:#fff;
cursor: pointer;
}
<!--[if IE]>
<style type="text/css">
input.hide
{
position:absolute;
let:10px;
-moz-opacity:0;
filter:alpha(opacity:0);
opacity:0;
z-index:2;
width:0px;
border-width:0px;
background-color:#003c5c !important;
}
</style>
<![endif]-->