Is there a way to align two buttons on the far right side of a block of text? I want all the content to be in line, with the text on the left and the buttons on the right. While I've found solutions for aligning one button, I'm struggling to get two buttons aligned properly.
In my code, I iterate over the 'weaknesses' array and display each weakness along with update and delete buttons.
I attempted to use margin-left, but due to varying lengths of weaknesses, the buttons didn't align correctly.
I also looked at suggestions from this post: Place a button right aligned, but couldn't achieve the desired result.
If anyone could offer guidance or assistance, it would be greatly appreciated.
HTML
<div *ngFor="let weakness of weaknesses | async">
<div class="flex-box">
<p>{{ weakness }}</p>
<a class="btn btn-light btn-sm pull-right" href="#">Update</a>
<button type="button" class="btn btn-danger btn-sm">Delete</button>
</div>
</div>