title: Flexbox - center vertically second row
body: <p>I'd like to position second row in the center of container, but I can't figure out how to make it. <code>align-self</code> works in horizontal direction only - even if <code>flex-direction</code> is set to &quot;column&quot;.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.first, .second {
    height: 50px;
    width: 100%;
  }
  
  .first {
    background-color: wheat;
  }
  
  .second {
    align-self: center;
    background-color: purple;
  }
  
  .container {
    background-color: silver;
    height: 300px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="first"&gt;
      first
    &lt;/div&gt;
    &lt;div class="second"&gt;
      second
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>