title: Horizontal list item with line between
body: <p>I am trying to position a thin gray horizontal line between <code>&lt;li&gt;</code> elements on a horizontal navbar to provide connection perception between the elements. The code would be this below. How could I add a simple line between these elements?</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>ul {
      display: flex;
      align-items: stretch; /* Default */
      justify-content: space-between;
      width: 100%;
      margin: 0;
      padding: 0;
  }
  li {
      display: block;
      flex: 0 1 auto; /* Default */
      list-style-type: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;1&lt;/li&gt;
    &lt;li&gt;2&lt;/li&gt;
    &lt;li&gt;3&lt;/li&gt;
    &lt;li&gt;4&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>