title: CSS: Having trouble with vertical alignment using flex
body: <p>I am attempting to add a class to either vertically align top, middle or bottom, but I am obviously missing something:</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>.row {
   display: flex;
      background-color: #f0f0f0;
  }
  .col-3 {
   -ms-flex-preferred-size: 25%;
   flex-basis: 25%;
   max-width: 25%; 
  }
  [class*='col-'].col-top {
   align-items: flex-start;
  }
  [class*='col-'].col-center {
   align-items: center;
  }
  [class*='col-'].col-bottom {
   align-items: flex-end;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="row"&gt;
    
    &lt;div class="col-3"&gt;
      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    &lt;/div&gt;
    &lt;div class="col-3 col-center"&gt;
      middle
    &lt;/div&gt;
    &lt;div class="col-3 col-bottom"&gt;
      right
    &lt;/div&gt;
    
   &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>