I'm currently exploring Bootstrap4 and I'm encountering an issue with the images. Essentially, what I aim to accomplish is as follows:
Bootstrap4 Card featuring a top right button on the image
My goal is to overlay a "3-dot" button over the image in the top right corner. This button will serve as a dropdown menu with options like edit and share. The code for creating the card without the button is as follows:
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-block">
<h4 class="card-title">Card title</h4>
<p class="card-text">Some quick example text to build on the card
title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
I've attempted to enclose the card-img-top and a button within a div tag, but the image ends up going out of bounds. Any suggestions on how to achieve this? Thank you!