I'm having trouble getting the f1 link to appear on an image only when hovering over the image. I tried some code but it's not working, the link is not appearing. Can someone help me understand what the problem is and provide a solution?
<div class="caine1">
<img src="1.png" width="400" height="250"></img>
<a href="#" id="f1">Female</a>
</div>
#f1 {
position:absolute;
display: none;
z-index: 200;
}
.caine1 img:hover #f1 {
display: inline-block;
}