<h4># align-items:strerch;(初期値)</h4>
<div class="d-flex ai-str">
  <div class="box-item">1</div>
  <div class="box-item">2</div>
  <div class="box-item">3</div>
  <div class="box-item">4</div>
</div><hr>

<h4># align-items:flex-start;</h4>
<div class="d-flex ai-fs">
  <div class="box-item">1</div>
  <div class="box-item">2</div>
  <div class="box-item">3</div>
  <div class="box-item">4</div>
</div><hr>

<h4># align-items:flex-end;</h4>
<div class="d-flex ai-fe">
  <div class="box-item">1</div>
  <div class="box-item">2</div>
  <div class="box-item">3</div>
  <div class="box-item">4</div>
</div><hr>

<h4># align-items:center;</h4>
<div class="d-flex fl-c">
  <div class="box-item">1</div>
  <div class="box-item">2</div>
  <div class="box-item">3</div>
  <div class="box-item">4</div>
</div><hr>

<h4># align-items:space-baseline;</h4>
<div class="d-flex fl-bl">
  <div class="box-item">1</div>
  <div class="box-item">2</div>
  <div class="box-item">3</div>
  <div class="box-item">4</div>
</div><hr>

*{
  box-sizing:border-box;
}
.d-flex{
  height:150px;
  background-color:silver;
  display:-wibkit-flex;
  display:flex;
}
.box-item{
  width:50px;
  height:50px;
  background-color:lime;
  border:solid 1px;
  text-align:center;
  padding:12.5px;
  margin:5px;
}

.ai-str{
  align-items:str;/* 初期値 */
}
.ai-fs{
  align-items:flex-start;
}
.ai-fe{
  align-items:flex-end;
}
.fl-c{
  align-items:center;
}
.fl-bl{
  align-items:space-baseline;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.