The following code runs successfully on chrome browser but not work on Mozilla firefox.
How can I make the below code work on all browsers
.customfile {
width: 371px;
height: 29px;
margin-top: 10px;
outline: none;
color: #666666;
background-color: #dbdbdb;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
text-align: center;
}
input[type="file"].customfile::-webkit-file-upload-button {
float: right;
position: relative;
top: 0px;
right: -99px;
background-color: #8bc243;
height: 29px;
width: 100px;
border: 0px;
color: #ffffff;
text-align: center;
outline: none;
}
<html>
<body>
<div class="form-block-small block-right">
<span class="gray14">Proof documents</span><br>
<input type="file" name="proof_documents" id="proof_documents" class="customfile valid">
</div>
</body>
</html>