I'm currently facing a specific scenario:
<div class="row no-gutters">
<div class="col"></div>
<div class="col col-auto"></div>
</div>
Essentially, the first column will take up any available space not occupied by the second column.
In other words: [ |--------column1--------| |column2| ]
My problem arises when the content within column1
exceeds the width of the row it's in. Instead of column1
adjusting its size to fit both columns on the same line, it expands to fill the entire row as if it were col-12
, causing column2
to shift to a new line.
Is there a way to avoid this behavior and ensure that both columns always remain on the same line?