I am currently using Bootstrap 4 and have a flex layout set up like this:
.larger {
background: blue;
}
.smaller {
background: red;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ae8e5e5fef9fef8ebfacabfa4bba4b9">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<div class="row">
<div class="col larger"> larger column </div>
<div class="col-3 smaller"> smaller column </div>
</div>
As I resize the window to a very small width, the second column is displayed in a new line on its own. While this is acceptable, the issue arises when it only occupies a fraction of the line's width. This behavior is less than desirable. When there is a line break, I would prefer for the divs to fill the available size. How can achieve this?