title: Centering divs horizontally within a parent div?
body: <p>I know this question is being asked frequently but I never seem to fix this in my case, since I am</p>
  
  <p>new in html. I have three divs (boxes: qm, audit, pm) and I want to center them in a parent div</p>
  
  <p>(services).</p>
  
  <p>As seen in photo, the left box is super close to parent div</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>.services {
      background-color: lightblue;
      display: flex;
      height: 60vh;
      width: 90%;
      margin: auto;
      align-items: center;
      text-align: center;
  }
  .qm {
      flex: 1;
      position: absolute;
      width: 277px;
      height: 316px;
      left: 86px;
      top: 1037px;
      background: #3C3664;
      box-shadow: 5px 7px 18px rgba(0, 0, 0, 0.4);
      border-radius: 20px;
  }
  .audit {
      flex: 1;
      position: absolute;
      width: 276px;
      height: 316px;
      left: 582px;
      top: 1037px;
      background: #FFFFFF;
      box-shadow: 5px 7px 18px rgba(0, 0, 0, 0.2);
      border-radius: 20px;
  }
  .pm {
      flex: 1;
      position: absolute;
      width: 276px;
      height: 316px;
      left: 1077px;
      top: 1037px;
  
      background: #FFFFFF;
      box-shadow: 5px 7px 18px rgba(0, 0, 0, 0.2);
      border-radius: 20px;
      float: right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="services"&gt;
              &lt;!-- Quality Management --&gt;
              &lt;div class="qm"&gt;
                  &lt;h1&gt;
                      Quality Management
                  &lt;/h1&gt;
              &lt;/div&gt;
              &lt;!-- Auditing --&gt;
              &lt;div class="audit"&gt;
                  &lt;h1&gt;
                      Auditing
                  &lt;/h1&gt;
              &lt;/div&gt;
              &lt;!-- Project Management --&gt;
              &lt;div class="pm"&gt;
                  &lt;h1&gt;
                      Project Management
                  &lt;/h1&gt;
              &lt;/div&gt;
          &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/wy7DE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wy7DE.png" alt="As seen in photo, the left box is super close to parent div"></a></p>