I'm looking to enhance the card view by adding edit and delete buttons that appear after hovering over it. Here's my code:
<div class="card"> //image section
<img class="card-img-top" alt="Card image" style="width:50%" src="images/img1">
<div class="card-body">
<div class="button" onClick="updateData()">
<i class="fa fa-edit" style="font-size:24px"></i>
</div>
<div class="button" onClick="deleteData()">
<span aria-hidden="true" style="font-size:40px">×</span>
</div>'
<p class="card-text">Text description</p>
</div>
</div>
I need help figuring out how to make those two buttons visible when I hover over the card. Can anyone advise me on this?