title: Flexbox: Two boxes in the second row are positioned too far towards the outside
body: <p>The only thing which is wrong and should be different, is that the picture and text should be centered in the second row.</p>
  
  <p>The two boxes in the second row are positioned too far towards the outside.</p>
  
  <p>I want the two boxes in the second row centered exactly between the ones at the top </p>
  
  <p>This is the previous code I created:</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>html {
    font-size: 62.5%;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  
  body {
    font-size: 1.6rem;
  }
  
  * {
    box-sizing: border-box;
  }
  
  .flex-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #666;
    justify-content: center;
  }
  
  .half {
    flex: 0 0 calc(100%/2);
  }
  
  .third {
    flex: 0 0 calc(100%/3);
  }
  
  .flex-container&gt;* {
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="de"&gt;
  
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;link rel="stylesheet" type="text/css" href="styles.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;div class="flex-container"&gt;
  
      &lt;div class="third"&gt;
        &lt;img src="https://img1.picload.org/image/dapawwpr/unbenannt.png" alt=""&gt;
        &lt;p&gt;Lorem ipsum.&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div class="third"&gt;
        &lt;img src="https://img1.picload.org/image/dapawwpr/unbenannt.png" alt=""&gt;
        &lt;p&gt;Lorem ipsum.&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div class="third"&gt;
        &lt;img src="https://img1.picload.org/image/dapawwpr/unbenannt.png" alt=""&gt;
        &lt;p&gt;Lorem ipsum.&lt;/p&gt;
        &lt;p&gt;Lorem ipsum.&lt;/p&gt;
        &lt;p&gt;Lorem ipsum.&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div class="half"&gt;
        &lt;img src="https://img1.picload.org/image/dapawwpr/unbenannt.png" alt=""&gt;
        &lt;p&gt;Lorem ipsum.&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div class="half"&gt;
        &lt;img src="https://img1.picload.org/image/dapawwpr/unbenannt.png" alt=""&gt;
        &lt;p&gt;Lorem ipsum.&lt;/p&gt;
      &lt;/div&gt;
  
    &lt;/div&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>