title: How to center text vertically in a flex item?
body: <p>I just want the text to be like:</p>
  
  <pre><code>display: table-cell;
  vertical-align: middle;
  </code></pre>
  
  <p>But using flex boxes</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>div {
    border: 1px solid black;
  }
  
  .box {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-content: center;
    align-items: stretch;
    height: 200px;
  }
  
  .box div {
    order: 1;
    flex: 0 1 auto;
    align-self: auto;
    min-width: 0;
    min-height: auto;
  }
  
  .box div.C {
    flex: 1 1 auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="box"&gt;
    &lt;div class="A"&gt;A&lt;/div&gt;
    &lt;div class="B"&gt;B&lt;/div&gt;
    &lt;div class="C"&gt;C&lt;/div&gt;
    &lt;div class="D"&gt;D&lt;/div&gt;
    &lt;div class="E"&gt;E&lt;/div&gt;
    &lt;div class="F"&gt;F&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>