I am trying to align the edit and delete buttons with the image and premise name on the same line. Both buttons should be placed on the right side and have the same size as the card. Currently, the layout looks like this:
https://i.sstatic.net/sNikU.png
I want it to look like this:
https://i.sstatic.net/vVeM0.png
.card-content {
display: flex;
align-items: center;
position: relative;
}
<!-- Bootstrap-5 -->
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b2d0ddddc6c1c6c0d3c2f2879c">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- Body -->
<div class="px-md-5 px-4">
<a class="anchor-fake" onclick="MovingIn()">
<div class="block block--light block--cardShadow mb-md-4 mb-2">
<div class="card-content">
<div class="mr-3">
<img src="~/assets/img/hmo-connectmyhome-home-icon.svg" />
</div>
<div class="card-text-20-14-400">
@premise.PremiseNickname
</div>
</div>
<div class="btn-group">
<input class="btn btn-secondary btn-lg" type="button" value="Edit">
<input class="btn btn-danger btn-lg" type="button" value="Delete">
</div>
</div>
</a>
</div>