title: How to center text inside a li element inside an unordered list
body: <p>This list is working great for me but the text within the <code>&lt;li&gt;</code> elements is not centering.</p>
  
  <p>The <code>&lt;li&gt;</code>s must auto resize to their content.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#nav-menu {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      height: 30px;
      background-image: url(../img/menu_bg.png);
      background-repeat: repeat-x;
      border-bottom: dotted thin #666666;
      border-top: dotted thin #666666;
      text-align: center;
      width: 800px;
  }
  
  #nav-menu ul {
      list-style: none;
      padding: 0;
      margin: auto 0;
  }
  
  #nav-menu li {
      float: left;
      border-right: dotted thin #666666;
      list-style: none;
      padding: 0.5em 2em 0.5em 0.75em;
  }
  
  #nav-menu li a {
      line-height: 1.5em;
      color: #333333;
      text-decoration: none;
      font-size: 12px;
      font-weight: bold;
      display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="nav-menu"&gt;
      &lt;ul&gt;
          &lt;li class="current_page_item"&gt;&lt;a href="#" title="Home"&gt;Home&lt;/a&gt;
          &lt;li class="current_page_item"&gt;&lt;a href="#" title="Home"&gt;Home&lt;/a&gt;
          &lt;li class="current_page_item"&gt;&lt;a href="#" title="Home"&gt;Home&lt;/a&gt;
          &lt;li class="current_page_item"&gt;&lt;a href="#" title="Home"&gt;zxczczxczHome&lt;/a&gt;
      &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>