I've a hidden fileupload input and :before
pseudo element. I'm trying to hide the input and open it by clicking the pseudo element.
But currently it's not when when i click the :before
. How can i fix it?
This is my HTML:
<div class="icon-buttonimage">
<input name="my_image[]" id="my_file" size="27" type="file" class="inputImage" title="Upload images" multiple="multiple" />
</div>
And CSS:
.icon-buttonimage:before {
content:'\e800';
font-size: 20px;
margin-top: 16px;
margin-left: 9px !important;
}
Also see my JSFiddle