I'm having trouble making an image clickable within a hover effect overlay that displays text and a link. I attempted to turn the overlay into a link, but it wasn't successful.
Please disregard the placeholder text and link as they are just temporary. I apologize if this is something basic, I'm still learning.
.post {
width: 300px;
height: 300px;
background: url("http://lorempixel.com/300/300");
margin: 5% auto 0 auto;
background-size: cover;
overflow: hidden;
}
.overlay {
background: rgba(63, 63, 63, 0.8);
text-align: center;
padding: 20px 0 203px 0;
opacity: 0;
visibility: hidden;
transition: all 0.2s ease;
}
.post:hover .overlay {
visibility: visible;
opacity: 1;
}
.overlay a,
.overlay p {
color: #47f197;
font-size: 18px;
font-family: Helvetica;
font-weight: 400;
text-decoration: none;
text-transform: uppercase;
}
.overlay p {
margin-top: -5px;
margin-bottom: 230px;
}
<div class="post">
<div class="overlay">
<p>Text</p>
<p><a href="">Link</a></p>
</div>
</div>