title: Move divs towards right side using flex
body: <p>How to give spacing between different divs, using flex box.
  I want to move last 3 divs towards right side of screen, giving equal space between them</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>.flexBox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: #fff;
    margin: 20px;
    font-family: myriad-pro, sans-serif;
    font-style: normal;
    font-weight: 300;
  }
  
  .flexBox &gt; div:nth-child(2),
  .flexBox &gt; div:nth-child(3),
  .flexBox &gt; div:nth-child(4) {
    margin-left: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="flexBox"&gt;
    &lt;div&gt;&lt;img src="http://placehold.it/100x100" alt=""&gt;&lt;/div&gt;
    &lt;div&gt;&lt;a class="navbutton" href="https://google.com"&gt;Home&lt;/a&gt;&lt;/div&gt;
    &lt;div&gt;&lt;a class="navbutton" href="https://google.com"&gt;FAQ&lt;/a&gt;&lt;/div&gt;
    &lt;div&gt;&lt;a class="navbutton" href="https://google.com"&gt;Log in&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>