I have my CSS like this.There is an unnecesary space appearing in the last row. How to make the flex box Uniform. products1 is the outermost div, catlist1 is the middle one and d1 is the innermost div:-
.products1{
position:absolute;
top:800px;
padding:50px;
background: #f2f2f2;
display:flex;
margin-left: 15px;
width: 90%;
}
.catlist1{
flex-wrap: wrap;
width: 100%;
padding:0px;
display:flex;
}
.d1{
display: block;
background:white;
margin-left: auto;
margin-right: auto;
background-size: cover;
margin: 10px auto;
width:100px;
height:25px;
border:0 solid #dee0e2;
display: inline;
padding:50px;
text-align: center;
box-shadow: 1px 5px 5px 0 rgba(0,0,0,.3);
}
And I am getting the output as this:- [![This][1]][1]
HTml:-
<div class="products1">
<div class="catlist1">
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
<div class="d1"></div>
</div>
</div>