title: Position last flex item at the end of container
body: <p>This question concerns a browser with full css3 support including flexbox. </p>
  
  <p>I have a flex container with some items in it. They are all justified to flex-start but I want the <em>last</em> <code>.end</code> item to be justified to flex-end. Is there a good way to do this without modifying the HTML and without resorting to absolute positioning?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    display: flex;
    flex-direction: column;
    outline: 1px solid green;
    min-height: 400px;
    width: 100px;
    justify-content: flex-start;
  }
  p {
    height: 50px;
    background-color: blue;
    margin: 5px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;p&gt;&lt;/p&gt;
    &lt;p&gt;&lt;/p&gt;
    &lt;p&gt;&lt;/p&gt;
    &lt;p class="end"&gt;&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>