flex justify content max per row code example
Example: flex max item per row
.parent {
display: flex;
flex-wrap: wrap;
}
.child {
flex: 2 0 21%; /* explanation below */
margin: 5px;
height: 100px;
background-color: blue;
}
.parent {
display: flex;
flex-wrap: wrap;
}
.child {
flex: 2 0 21%; /* explanation below */
margin: 5px;
height: 100px;
background-color: blue;
}