title: Align markers under a div using css
body: <p>I am trying to add 9 markers under a common <code>div</code> and adding name for each <code>div</code>. The code works well, when I am using a 100% width of the page. I would like to adjust it to 80%.Now I see that the markers are not aligned properly with the main div.</p>
  
  <p>My code:
  <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>.wrap {
    width: 80%;
    margin-top: 40px;
    margin:auto;
    border:1px solid black;
    height:100px;
    padding:10px;
  }
  
  .amntslider {
    height: 10px;
    background-color: red;
    width: calc(100% / 9 * 8 + 2px);
    margin:auto;
  }
  
  
  .Mark{
    font-size: 18px;
    width: calc(100% / 9);
    float: left;  
  }
  
  .L {
    
    font-size: 10px;
    width: calc(99% / 9);
    float: left;
    text-align:left;
    margin:auto;
  }
  
  .MarkWrap {margin:auto;}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrap"&gt;
  
  &lt;div id="amntslider" class="amntslider"&gt;&lt;/div&gt;
  &lt;div class="MarkWrap"&gt;
  
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  &lt;div class="Mark"&gt;|&lt;/div&gt;
  
  &lt;div class="L"&gt;0L&lt;/div&gt;
  &lt;div class="L"&gt;25L&lt;/div&gt;
  &lt;div class="L"&gt;50L&lt;/div&gt;
  &lt;div class="L"&gt;75L&lt;/div&gt;
  &lt;div class="L"&gt;100L&lt;/div&gt;
  &lt;div class="L"&gt;125L&lt;/div&gt;
  &lt;div class="L"&gt;150L&lt;/div&gt;
  &lt;div class="L"&gt;175L&lt;/div&gt;
  &lt;div class="L"&gt;200L&lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  
  I have added a main div <code>MarkWrap</code> for the marker and test and tried to use <code>margin:auto;</code> thinking that will center the entire thing, just like the slider div, but that is not working. Can you suggest what is the problem with the code </p>