title: How do I add a Margin/Space between two divs in Flexbox
body: <p>I have a left column and a right Column. The right column Div element has a Display Value of Flex, but I am unable to add a margin or space in between its two child Div elements.</p>
  
  <p>I found an answer on stack overflow which advised me to use Justify-content: space-around</p>
  
  <p>But this did not seem to work. I am using the code pen platform to practice on.</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>body {
    margin: 0 auto;
    width: 100%;
    max-width: 2500px;
    padding: 0;
  }
  
  * {
    box-sizing: border-box;
  }
  
  header {
    background: blue;
    width: 100%;
    height: 100px;
  }
  
  a {
    text-decoration: none;
    text-align: center;
    color: #ffffff;
    font-size: 1.15em;
  }
  
  h1 {
    position: absolute;
    top: 15px;
    left: 10px;
    float: left;
    left-margin: 6%;
    margin-top: 10px;
    padding: 3px;
  }
  
  ul {
    float: right;
    margin: auto;
    margin-top: 37px;
  }
  
  li {
    display: inline-block;
    padding-left: 20px;
    padding-right: 10px;
  }
  
  .lastlist {
    padding-right: 30px;
  }
  
  .wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
  .leftcolumn {
    padding: 30px;
    float: left;
    width: 70%;
    background: grey;
    height: 2000px;
    display: grid;
    grid-template-rows: 200px 200px 200px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    border-radius: 1px;
  }
  
  .box1 {
    grid-column: 1/3;
  }
  
  .rightcolumn {
    padding: 30px;
    float: left;
    width: 30%;
    background: pink;
    height: 2000px;
    border-radius: 1px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .rightbox1 {
    flex: 1 30px;
    margin-left: 2%;
  }
  
  .rightbox2 {
    flex: 1 30px;
  }
  
  div {
    background: white;
    border-radius: 5px;
    padding: 10px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
    &lt;h1&gt;Daniel Savva&lt;/h1&gt;
    &lt;nav&gt;
      &lt;ul&gt;
        &lt;li&gt; &lt;a href="#"&gt; Home&lt;/a&gt; &lt;/li&gt;
        &lt;li&gt; &lt;a href="#"&gt; Portfolio&lt;/a&gt; &lt;/li&gt;
        &lt;li&gt; &lt;a href="#"&gt; Gallery&lt;/a&gt; &lt;/li&gt;
        &lt;li&gt; &lt;a href="#"&gt; Contact&lt;/a&gt; &lt;/li&gt;
        &lt;li class="lastlist"&gt; &lt;a href="#"&gt; Services&lt;/a&gt; &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/header&gt;
  &lt;div class="wrapper"&gt;
    &lt;div class="leftcolumn"&gt;
      &lt;div class="box1"&gt;hi&lt;/div&gt;
      &lt;div&gt;hi&lt;/div&gt;
      &lt;div&gt;hi&lt;/div&gt;
      &lt;div&gt;hi&lt;/div&gt;
      &lt;div&gt;hi&lt;/div&gt;
  
    &lt;/div&gt;
    &lt;div class="rightcolumn"&gt;
      &lt;div class="rightbox1"&gt;hello&lt;/div&gt;
      &lt;div class="rightbox2"&gt;hello&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>