title: CSS - Div Not Centering
body: <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 {
    background: #212121;
  }
  
  .wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
  }
  
  .holder{
    height: 50%;
    width: 100%;
    position: absolute;
    top: 25%;
    left: 0%;
  }
  
  .content {
    height: 100%;
    width: 400px;
    margin: 10px;
    display: inline-block;
    background: #424242;
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 1);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 1);
  }
  
  .detailBox {
    height: 100%;
    display: inline-block;
    font-size: 0;
    margin: 0 auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
     &lt;div class="holder"&gt;
      &lt;div class="detailBox"&gt;
       &lt;div class="content" id="row1"&gt;
        &lt;div class="wordInputContainer"&gt;
         &lt;div class="inputBox"&gt;
          
         &lt;/div&gt;
        &lt;/div&gt;
       &lt;/div&gt;
       &lt;div class="content" id="row2"&gt;
        &lt;div class="wordOutputContainer"&gt;
         &lt;div class="listBox"&gt;
          &lt;!-- List Elements Go Here --&gt;
          &lt;!-- Words Output In Alphabetical Order [A - Z] --&gt;
         &lt;/div&gt;
        &lt;/div&gt;
       &lt;/div&gt;
       &lt;div class="content" id="row3"&gt;
        &lt;div class="wordStatisticContainer"&gt;
         &lt;div class="wordCount"&gt;&lt;/div&gt;
         &lt;div class="commonLetter"&gt;&lt;/div&gt;
         &lt;div class="commonWord"&gt;&lt;/div&gt;
         &lt;div class="longestWord"&gt;&lt;/div&gt;
         &lt;div class="shortestWord"&gt;&lt;/div&gt;
        &lt;/div&gt;
       &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/22vjx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/22vjx.png" alt="img"></a></p>
  
  <p>Even though I have <code>margin: 0 auto;</code> on the <code>.detailedBox</code> it still isn't centering. Is it because it doesn't have a fix width? It doesn't have a fixed width because I want the <code>.detailedBox</code> to be the width of all the <code>.content</code>'s combined, but also centered.</p>