title: align flex child at top-center and bottom-center, flexbox
body: <p>I need a layout using flexbox, where 2 flex-items, item-1 should be aligned at top-center, while item-2 should be at bottom-center. I could not figure out how to do that.</p>
  
  <p>See the below code:</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>.container{
    padding:10px;
    background: #fff;
    border-radius:5px;
    margin: 45px auto;
    box-shadow: 0 1.5px 0 0 rgba(0,0,0,0,1.1);
  }
  
  .item{
    color: #fff;
    padding: 15px;
    margin: 5px;
    background: #3db5da;
    border-radius: 3px;
  }
  
  .container{
    display: flex;
    min-height: 50vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .item{
    /*margin: auto;*/
    /*align-self: flex-start;*/
  }
  
  .item-4{
    align-self: flex-start;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="item item-4"&gt;
      Flex Item
      &lt;p&gt;Vertical and horizontal align easy!&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="item item-5"&gt; bottom-center&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is fiddle link : <a href="https://jsfiddle.net/q5cw4xvy/" rel="nofollow">https://jsfiddle.net/q5cw4xvy/</a>    </p>