<div class="wrap flex">
  <div class="item order1">A<br>order:1</div>
  <div class="item order-1">B<br>order:-1</div>
  <div class="item order0">C<br>order:0<br>(初期値)</div>
  <div class="item order2">D<br>order:2</div>
  <div class="item order1">E<br>order:1</div>
</div>
/* 並び順 order */
.order-1 {order: -1;}
.order0 {order: 0;}
.order1 {order: 1;}
.order2 {order: 2;}


/* 基本flex */
.flex {
  display: -webkit-flex;
  display: flex;
}
.f-wrap {
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
/* flex以外のプロパティ */
h2,h3 {
  font-size: 1rem;
  font-weight: normal;
  margin: .5em;
}
p {
  font-size: .8rem;
}
.wrap {
  border: 1px solid #ccc;
}
.inWrap {
  border: 1px solid #ccc;
  width : 150px;
}
.item {
  border: 1px solid #ccc;
  padding: 5px;
  margin: 5px;
  text-align: center;
  box-sizing: border-box;
}
.miniItem {
  width: 30%;
  font-size: 10px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 2px;
  margin: 2px;
  box-sizing: border-box;
}
.f-aliBase .miniItem {text-decoration: underline;}
.f-aliBase .miniItem:nth-child(2){font-size: 1em;}
.f-aliBase .miniItem:nth-child(3){font-size: 2em;}
.f-aliBase .miniItem:nth-child(4){font-size: 1.5em;}
.f-aliBase .miniItem:nth-child(5){font-size: 0.8em;}
.col3 {
  width: calc(100% / 3 - 10px);
}
.w100 {width: 100px;}
.w150 {
  width: 150px;
}
.h100 {
  height: 100px;
}
.w50per {width:50%;}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.