Any tips on how to position my btn button both vertically and horizontally in the center on top of two images? I want it to look like this:
https://i.sstatic.net/Rezrd.png
This is the code for my button:
<a class="btn btn-primary" href="#" role="button">Link example</a>
, and I'm using the latest version of Bootstrap 5.
MY CODE
<!-- Bootstrap-5 -->
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5b7babaa1a6a1a7b4a595e0fbe5fbe7">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- Body -->
<div class="container">
<div class="row">
<div class="col-lg-6">
<a class="btn btn-primary" href="#" role="button">Link example</a>
<img src="https://via.placeholder.com/1920x1080.jpg" class="rounded img-fluid">
<a class="btn btn-primary" href="#" role="button">Link example</a>
<img src="https://via.placeholder.com/1920x1080.jpg" class="rounded img-fluid">
</div>
<div class="col-lg-6">
//other code
</div>
</div>
</div>