title: Remove distance Display:Flex
body: <p>I'm trying to get a navigation that pushes both div containers on the right side, under the navigation when you go into smartphone view. I try it with Display:flex
  however I get this spacing left and right. How can I get rid of that</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-div {
    display: flex;
    width: 500px;
    background-color: rgb(176, 243, 221);
  }
  
  .container-div div {
    flex-basis: 50%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container-div"&gt;
    &lt;div class="col-md-2 d-flex justify-content-center header-phone"&gt;
      &lt;i class="fa fa-phone fa-3x"&gt;&lt;/i&gt;
      &lt;div class="col text-center "&gt;
        &lt;h5&gt;Rufen Sie uns an&lt;/h5&gt;
        &lt;h5&gt;+49 7433 2106989&lt;/h5&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="col-md-2 d-flex justify-content-center  header-mail"&gt;
      &lt;h5 class="col-4 d-flex justify-content-center text-center"&gt;Kontakt&lt;/h5&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/a64xm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a64xm.png" alt="enter image description here" /></a></p>