I'm learning to use Angular and I have a problem with how to show data in columns.
In my app.components.ts I have:
<div class="cardComp" *ngFor="let person of people">
<app-card-person [person]="person"></app-card-person>
</div>
// people is an array of objects
In my card-person.component.ts
<div class="card" style="width: 18rem;">
<!-- <img src="..." class="card-img-top" alt="..."> -->
<div class="card-body">
<h5 class="card-title">{{person?.name}} {{person?.surname}}</h5>
<p class="card-text">{{person?.description}}</p>
<!-- <a href="#" class="btn btn-primary">Go somewhere</a> -->
</div>
</div>
In this way, I obtain a list of cards but they are 1 per row:
CARD1
CARD2
CARD3
.....
What I would to obtain is:
CARD1 CARD2
CARD3 CARD4
..... .....


CSS Frameworkto help the community to give the best possible answer to your question.