I have the following HTML and CSS code. If one of the columns is hidden, I would like the other 3 columns to expand. I don't believe using col-md-3
will work in this situation.
Is there a way to achieve this?
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="col-md-3" *ngIf="hideCol1">
Column 1
</div>
<div class="col-md-3" *ngIf="hideCol2">
Column 2
</div>
<div class="col-md-3" *ngIf="hideCol3">
Column 3
</div>
<div class="col-md-3" *ngIf="hideCol4">
Column 4
</div>
</div>