I'm having trouble changing the cursor type on a div.
HTML:
<div class='hover-effect'>
<label for='file-input'>
<img src='http://i.imgur.com/MIY6LmH.png' alt='Upload File' title='Upload File' width='250' height='250'>
</label>
<input type='file' name='photo' id='file-input'>
</div>
CSS:
.hover-effect {
width: 250px;
height: 250px;
margin: 0 auto;
cursor: pointer;
}
.hover-effect img {
width: 250px
height: 280px;
}
.hover-effect input {
display: none;
}
Result: https://jsfiddle.net/m7tctnvh/
If anyone has a solution, I would greatly appreciate it. Additionally, if you could explain why the CSS code isn't functioning as expected, that would be helpful too.