title: Gaps between list items and mysterious spacing in DIV
body: <p>See my codepen here: <a href="http://codepen.io/Chiz/pen/XKBbok" rel="nofollow">http://codepen.io/Chiz/pen/XKBbok</a></p>
  
  <p>1) How do I get rid of the little gaps between the red boxes? I've set padding and margin to 0 but there's still gaps.</p>
  
  <p>2) In the purple box (.container), the space on the right side is more than the space on the left. I've tried to center the UL inside .container using "margin:0 auto;" but it has no effect.</p>
  
  <p>Tks!</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>* {
    box-sizing: border-box;
  }
  
  .container
  {
    border:1px solid blue;
    width:65%;
    margin:0 auto;
  }
  
  ul {
    list-style-type: none;
    border:1px solid purple;
    margin:0 auto;
  }
  
  ul li {
    display: inline-block;
    border: 1px solid red;
    color: grey;
    text-align: center;
    width: 10rem;
    height: 8rem;
    margin: 0;
    padding: 0;
    position:relative;
  }
  
  ul li div
  {
    border:1px solid green;
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    left:0;
    right:0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;div&gt;
          &lt;i class="fa fa-spinner"&gt;&lt;/i&gt;&lt;br /&gt;Home
        &lt;/div&gt;
      &lt;/li&gt;
  
      &lt;li&gt;
        &lt;div&gt;
          &lt;i class="fa fa-spinner"&gt;&lt;/i&gt;&lt;br /&gt;Plants
        &lt;/div&gt;
      &lt;/li&gt;
  
      &lt;li&gt;
        &lt;div&gt;
          &lt;i class="fa fa-spinner"&gt;&lt;/i&gt;&lt;br /&gt;Land
        &lt;/div&gt;
      &lt;/li&gt;
  
      &lt;li&gt;
        &lt;div&gt;
          &lt;i class="fa fa-spinner"&gt;&lt;/i&gt;&lt;br /&gt;Animals
        &lt;/div&gt;
      &lt;/li&gt;
  
      &lt;li&gt;
        &lt;div&gt;
          &lt;i class="fa fa-spinner"&gt;&lt;/i&gt;&lt;br /&gt;About
        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>