I'm attempting to design a layout with multiple rows, each containing two columns. The first column will display text descriptions and should not wrap, taking up about 80% of the row space. The second column will show amounts and must be right-justified. However, my current code sets both columns to an equal 50% width.
<div className="row border">
<div className="col border">
<small className="text-muted">{trans.payee} - {trans.category}</small>
<div>
<div className="col text-righ">
<small className="text-muted">{trans.amount.toFixed(2)}</small>
</div>
</div>
Is there a way to make the first column expand to fill available space while allowing the second column to use only what it needs? I'm questioning if the row/col elements in Bootstrap 4 are the appropriate choice for this layout.
Bootstrap 4 is still new to me, so I'm working through the learning curve as I go along.