I've been developing a website for a school project and I encountered an issue with styling the file input button. When I click on it, nothing happens except for a color change due to the hover effect applied. How can I troubleshoot this problem?
<div class=radioB>
<input class=inputfile type="file" name=file>
<label for="file" id=inputlabel><img src="style/iconos/attachment.png" width="30px"></label>
</div>
CSS
.inputfile{
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
}
.inputfile + #inputlabel {
font-size: 1.25em;
font-weight: 700;
color: white;
height: 40px;
width: 45px;
background-color: white;
display: inline-block;
float: left;
margin-left: 0px;
}
.inputfile:focus + #inputlabel,
.inputfile + #inputlabel:hover {
background-color: antiquewhite;
border-radius: 510px;
}
.inputfile + #inputlabel {
cursor: pointer; /* "hand" cursor */
}
#inputlabel img{
position: absolute;
margin-left: 5px;
padding-top: 3px;
}
.radioB #inputlabel{
padding-top: 9px;
padding-bottom: 2px;
position: relative;
padding-left: 6px;
border: 1px solid white;
color: darkslategray;
border-radius: 510px;
border:1px solid black;
}