<h2>align-content</h2>
<div class="wrap flex f-wrap">
  <div class="item w150">
    <h3>stretch(初期値)</h3>
    <div class="wrap flex f-wrap f-valiStr h100">
      <div class="miniItem">1</div>
      <div class="miniItem">2</div>
      <div class="miniItem">3</div>
      <div class="miniItem">4</div>
      <div class="miniItem">5</div>
      <div class="miniItem">6</div>
      <div class="miniItem">7</div>
      <div class="miniItem">8</div>
      <div class="miniItem">9</div>
      <div class="miniItem">10</div>
      <div class="miniItem">11</div>
      <div class="miniItem">12</div>
    </div>
  </div>
  <div class="item w150">
    <h3>flex-start</h3>
    <div class="wrap flex f-wrap f-valiSta h100">
      <div class="miniItem">1</div>
      <div class="miniItem">2</div>
      <div class="miniItem">3</div>
      <div class="miniItem">4</div>
      <div class="miniItem">5</div>
      <div class="miniItem">6</div>
      <div class="miniItem">7</div>
      <div class="miniItem">8</div>
      <div class="miniItem">9</div>
      <div class="miniItem">10</div>
      <div class="miniItem">11</div>
      <div class="miniItem">12</div>
    </div>
  </div>
  <div class="item w150">
    <h3>flex-end</h3>
    <div class="wrap flex f-wrap f-valiEnd h100">
      <div class="miniItem">1</div>
      <div class="miniItem">2</div>
      <div class="miniItem">3</div>
      <div class="miniItem">4</div>
      <div class="miniItem">5</div>
      <div class="miniItem">6</div>
      <div class="miniItem">7</div>
      <div class="miniItem">8</div>
      <div class="miniItem">9</div>
      <div class="miniItem">10</div>
      <div class="miniItem">11</div>
      <div class="miniItem">12</div>
    </div>
  </div>
  <div class="item w150">
    <h3>center</h3>
    <div class="wrap flex f-wrap f-valiCen h100">
      <div class="miniItem">1</div>
      <div class="miniItem">2</div>
      <div class="miniItem">3</div>
      <div class="miniItem">4</div>
      <div class="miniItem">5</div>
      <div class="miniItem">6</div>
      <div class="miniItem">7</div>
      <div class="miniItem">8</div>
      <div class="miniItem">9</div>
      <div class="miniItem">10</div>
      <div class="miniItem">11</div>
      <div class="miniItem">12</div>
    </div>
  </div>
  <div class="item w150">
    <h3>space-between</h3>
    <div class="wrap flex f-wrap f-valiSpbet h100">
      <div class="miniItem">1</div>
      <div class="miniItem">2</div>
      <div class="miniItem">3</div>
      <div class="miniItem">4</div>
      <div class="miniItem">5</div>
      <div class="miniItem">6</div>
      <div class="miniItem">7</div>
      <div class="miniItem">8</div>
      <div class="miniItem">9</div>
      <div class="miniItem">10</div>
      <div class="miniItem">11</div>
      <div class="miniItem">12</div>
    </div>
  </div>
  <div class="item w150">
    <h3>space-around</h3>
    <div class="wrap flex f-wrap f-valiSparo h100">
      <div class="miniItem">1</div>
      <div class="miniItem">2</div>
      <div class="miniItem">3</div>
      <div class="miniItem">4</div>
      <div class="miniItem">5</div>
      <div class="miniItem">6</div>
      <div class="miniItem">7</div>
      <div class="miniItem">8</div>
      <div class="miniItem">9</div>
      <div class="miniItem">10</div>
      <div class="miniItem">11</div>
      <div class="miniItem">12</div>
    </div>
  </div>
</div>
/* 縦行揃え */
.f-valiStr {
  -webkit-align-content: stretch;
  align-content: stretch;
}
.f-valiSta {
  -webkit-align-content: flex-start;
  align-content: flex-start;
}
.f-valiEnd {
  -webkit-align-content: flex-end;
  align-content: flex-end;
}
.f-valiCen {
  -webkit-align-content: center;
  align-content: center;
}
.f-valiSpbet {
  -webkit-align-content: space-between;
  align-content: space-between;
}
.f-valiSparo {
  -webkit-align-content: space-around;
  align-content: space-around;
}

/* 基本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;
}
.wrap {
  border: 1px solid #ccc;
}
.inWrap {
  border: 1px solid #ccc;
  width : 150px;
}
.item {
  border: 1px solid #ccc;
  padding: 5px;
  margin: 5px;
  box-sizing: border-box;
}
.miniItem {
  width: 20px;
  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);
}
.w150 {
  width: 150px;
}
.h100 {
  height: 100px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.