title: How to remove the default margin of inline li elements?
body: <p>I have following HTML and CSS:</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>li {
    display: inline-block;
    padding: 10px;
    border: 1px solid red;
    margin: 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;one&lt;/li&gt;
    &lt;li&gt;two&lt;/li&gt;
    &lt;li&gt;three&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I am trying to remove the margin among the li elements by setting <code>margin: 0;</code>,  but it doesn't remove the margin.</p>
  <p><img src="https://i.stack.imgur.com/vjZOs.png" alt="result of HTML and CSS showing gap" /></p>
  <p>How do I remove this gap?</p>