title: How to center text in li?
body: <p>I am trying to have equal spacing between four different <code>li</code> elements, but I end up with this:</p>
  
  <p><a href="https://i.stack.imgur.com/392DM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/392DM.png" alt="enter image description here"></a></p>
  
  <p>HTML:</p>
  
  <p><code>&lt;ul&gt;&lt;li&gt;Inbox&lt;/li&gt;&lt;/li&gt;&lt;li&gt;Drafts&lt;/li&gt;&lt;/li&gt;&lt;li&gt;Sent&lt;/li&gt;&lt;/li&gt;&lt;li&gt;Trash&lt;/li&gt;&lt;/ul&gt;</code></p>
  
  <p>CSS:</p>
  
  <pre><code>ul li { 
       width: 25%;
       display: inline-block;
       text-align: center;
  }
  </code></pre>
  
  <p>I have tested the CSS and it is working as it should. I think the problem is that the <code>li</code>'s don't all have the same amount of letters, so you end up with some weird visual effects. My reason for believing this:</p>
  
  <p><a href="https://i.stack.imgur.com/Ct7LT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ct7LT.png" alt="enter image description here"></a></p>
  
  <p>(Equal spacing)</p>