I am using flex-wrap, but it is creating too much vertical spacing between items. Please see image and guide me the solution to remove vertical spacing.
section.genereListContainer{
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
//justify-content: center;
}
.bookPackage{
width: 100px;
height: 50px;
box-sizing: border-box;
border: 1px solid red;
display: flex;
justify-content: center;
align-items: center;
}
<section class="genereListContainer">
<div class="bookPackage" *ngFor="let book of genereList.genres">
{{book.name}}
</div>