<div class="flex-container space-between" style="width: 100%; justify-content: space-around;">
  <div class="side flex-col flex-container">
    <h1>Aligining the different items</h1>
    
    <h2>align-self: start</h2>
    <div class="flex-container">
      <div style="align-self: flex-start">1</div>
      <div>2</div>
      <div>3</div>
    </div>
    
    <h2>align-self: end</h2>
    <div class="flex-container">
      <div style="align-self: flex-end">1</div>
      <div>2</div>
      <div>3</div>
    </div>
    
    <h2>align-self: center</h2>
    <div class="flex-container">
      <div style="align-self: center">1</div>
      <div>2</div>
      <div>3</div>
    </div>
    
    <h2>align-self: baseline (container has align-items: center)</h2>
    <div class="flex-container" style="align-items: center">
      <div style="align-self: baseline">1</div>
      <div>2</div>
      <div>3</div>
    </div>
    
    <h2>align-self: stretch</h2>
    <div class="flex-container">
      <div style="align-self: stretch">1</div>
      <div>2</div>
      <div>3</div>
    </div>
  </div>
</div>
.flex-container {
  display: flex;
  margin-bottom: 15px;
}

/* General styles */

small {
  font-style: italic;
  display: block;
  font-size: .75em;
  color: gray;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.side {
  min-width: 250px;
}

.side + .side {
  margin-left: 15px;
}

.side .flex-container {
  background-color: lightblue;
  border: 2px solid #000;
  height: 100px;
  align-items: flex-start;
}

.side .flex-container div {
  background-color: lightgreen;
  padding: 10px;
  text-align:center;
  border: 2px solid lightblue;
}

h1, h2 {
  margin-top: 0;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.