title: CSS "margin: 0 auto" not centering
body: <p>Okay I understand that this topic has been covered. But I have looked at various solutions and have had little success with them. </p>
  
  <p>I just have no clue why this <code>margin: 0 auto;</code> is not working. I tried compensating the padding with <code>width: calc(33% - 40px);</code>, but this did not work.</p>
  
  <p>Any help on why this is happening, with solutions would be greatly appreciated!</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 {
    margin: 0 auto;
  }
  
  [class*='col-'] {
    float: left;
  }
  
  .col-2-3 {
    width: 66.66%;
  }
  
  .col-1-3 {
    width: 33.33%;
  }
  
  .grid:after {
    content: "";
    display: table;
    clear: both;
  }
  
  .col-word {
    width: auto;
    height: auto;
    padding: 25px;
    border: 5px #000 solid;
    border-left: 0px;
    border-right: 0px;
    background-color: #A7F4F6;
    font-size: xx-large;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='container'&gt;
    &lt;div class="grid"&gt;
      &lt;div class='grid'&gt;
        &lt;div class="col-1-3"&gt;
          &lt;p class='col-word'&gt;T&lt;/p&gt;
          &lt;p class='col-word'&gt;V&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class='grid'&gt;
        &lt;div class='col-1-3'&gt;
          &lt;div class='letter'&gt;W&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class='col-1-3'&gt;
          &lt;div class='letter'&gt;P&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class='col-1-3'&gt;
          &lt;div class='letter'&gt;V&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/xm2gvzbf/5/" rel="noreferrer">https://jsfiddle.net/xm2gvzbf/5/</a></p>