I am trying to style an input button but a jQuery function seems to interfere.
HTML code:
<form action="../include/upload-local-file.php" method="post" enctype="multipart/form-data" id="imageuploadform">
<div class="uploaded" style="display:inline-block"></div>
<div class="formupload" style="display: inline-block; position: relative; top: -10px;"><input name="imagefile" id="file" type="file" class="uploadinput" /></div>
jQuery code:
function() {
$('#imageuploadform').submit();
}
My CSS code:
#imageuploadform input[type="file"] {
background : url("../images/selecteaza.png") no-repeat center center;
width: 186px;
height:40px;
border: none;
color: transparent;
font-size: 0 !important;
}
Unfortunately, I still have part of the original button visibile, both in FF and Chrome:
https://i.stack.imgur.com/QWSQs.png
Any ideas?