I am trying to customize a Bootstrap 4 table with 2 columns. Specifically, I want to align some text in the right column to the right while keeping the rest of the text left-aligned within the same cell.
Below is the code for my table:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<table class="table table-striped table-bordered">
<tr>
<td width=20%>SKU:</td>
<td width=80%>PM432523
<div class="text-right">On Special</div>
</td>
</tr>
<tr>
<td>Supplier:</td>
<td>Acme Meat Inc</td>
</tr>
</table>
I have attempted to align the "On Special" string to the right and on the same line as the SKU value by experimenting with different tags but have not been successful. I am unsure if this alignment is achievable or if there is an alternative solution to achieve the desired layout?