<div class="row">
<div class="col-lg-4 col-xs-6" *ngFor="let client of clients;index as i">
<!-- small box -->
<div class="small-box bg-dashboard-box" >
<div class="inner">
<div class="text-black">
<h4>{{client.clientName}}</h4>
<p>{{client.address}}, {{client.city}}, {{client.state}}, {{client.country}}-{{client.pinCode}}</p>
</div>
</div>
<a (click)="onClientClick(client)" class="small-box-footer">
Users<i class="fa fa-arrow-circle-right"></i>
</a>
</div>
The current layout displays an uneven height in the divs and causes one to be pushed right. It is desired for all the divs to align in the same line. Attempts have been made using CSS clear: both;
, but it hasn't resolved the issue. Another approach involved adding a buffer div after every third dynamically created div by calculating modulus. However, this buffer div remains inside the loop and fails to span across all three columns due to its position within the loop.
https://i.sstatic.net/wwzKA.png