My form is structured as follows:
<div class="row">
<div class="col">
<textarea name="comment" class='form-control' placeholder='Type new comment here..'></textarea>
</div>
<div class="col">
<div class="row">
<div class="col">
<button class="btn btn-secondary btn-sm" type='button'><span class="fa fa-times mr5"></span>Cancel</button>
</div>
</div>
<div class="row">
<div class="col">
<button class="btn btn-primary btn-sm mt5" name='new_comment' type='submit'><span class="fa fa-plus mr5"></span>Save</button>
</div>
</div>
</div>
</div>
I'm utilizing Bootstrap 4, and I want the form to occupy the maximum width of its container, with the textarea expanding and buttons remaining a fixed width. However, using the current setup results in empty gaps due to column widths mismatch. How can I ensure that the form fills the screen width while keeping button columns at a fixed width?
I suspect that flexbox and d-flex classes might help achieve this, but I'm struggling to make it work.