Answers for "how to set maximum element in one flex row in css"

0

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;
}
Posted by: Guest on April-11-2021

Code answers related to "how to set maximum element in one flex row in css"

Browse Popular Code Answers by Language