I'm currently facing a challenge in creating an overlay for a card body in Bootstrap. The issue I'm encountering is that the overlay is blocking the button inside the card, preventing me from clicking on it. I'm unsure about the next steps to take and would really appreciate some guidance.
https://i.sstatic.net/ymai8.jpg
This is the HTML code:
.rafting {
background-image: url(./img/rafting.jpg);
background-size: cover;
color: white;
}
.rafting:before {
content: "";
position: absolute;
left: 0; right: 0;
top: 0; bottom: 0;
background: rgba(0,0,0,.5);
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b4b544b4b5e491551487b0a150a0d150a">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<section class="offres">
<h2 class="text-center">OUR OFFERS</h2>
<div class="container">
<div class="row text-center">
<div class="column">
<img class="mb-5" src="./img/picto-logo/picot1.png" alt="Snow" style="width:65%">
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
<div class="column">
<img class="mb-5" src="./img/picto-logo/picot2.png" alt="Forest" style="width:65%">
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
<div class="column">
<img class="mb-5" src="./img/picto-logo/picot3.png" alt="Mountains" style="width:65%">
<a href="#" class="btn btn-primary">Hello</a>
</div>
</div>
</div>
</section>