Answers for "flex order"

6

flex change order

.box {
  display: flex;
  flex-direction: row;
}
.box :nth-child(1) { order: 2; }
.box :nth-child(2) { order: 3; }
.box :nth-child(3) { order: 1; }
.box :nth-child(4) { order: 4; }
.box :nth-child(5) { order: 5; }
Posted by: Guest on September-02-2020
1

flex order

.item {
  order: 5; /* default is 0 */
}
Posted by: Guest on November-22-2020

Browse Popular Code Answers by Language