How do I place a button at the bottom and center of an image? I currently have a carousel with multiple images which works fine, but when I try to add a button for navigation purposes it is positioned outside of the image to the right.
Here is the HTML:
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="">
<button type="button" class="btn btn-success">Click Me</button>
</div>
</div>
</div>
position: relativeandposition: absolutewith the right elements to achieve what you want.