Need help with adjusting two columns on a webpage? The right column is fixed at 300px width, while the left column should take up the remaining space. Using flex works well, but when adding a responsive ad to the left column, it extends beyond the available space and causes the right column to collapse.
<style>
.rcol {
width: 300px;
}
</style>
<div class="row">
<div class="col"></div>
<div class="rcol d-none d-lg-block"></div>
</div>
In order to address this issue, one solution suggested is setting the width of the left column to:
width: calc(100% - 300px);
However, this method may be considered a bit of a workaround. Are there any alternative solutions available?