title: Bootstrap 4 Separators in navbar
body: <p>I'm trying to place separators in a <code>navbar</code> between the <code>nav-items</code>, but I have no idea how to set padding on separators in equal range between the <code>nav-item</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/vjYti.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vjYti.png" alt="enter image description here"></a></p>
  
  <p>My second problem is that, the separators have appeared in the <code>toggle-navbar</code> (when the <code>navbar</code> is collapsed) and I've tried to remove them, but unsuccessfully.</p>
  
  <p><a href="https://i.stack.imgur.com/XZhxX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XZhxX.png" alt="enter image description here"></a></p>
  
  <p>If someone knows a better way to create separators, I would be thankful.</p>
  
  <p>Here is my code:</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>.navbar-nav &gt; li &gt; a::after {
      content: "|";
      padding: 0 5px
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="collapse navbar-collapse" id="navbarResponsive"&gt;
    &lt;!--
    1) collapse - class dedicate to a given alement
    2) navbar-collapse:  show elements to bootstrap which belong to navbar, then use function - collapse
    --&gt;
    &lt;ul class="navbar-nav ml-auto"&gt;
      &lt;li class="nav-item active"&gt;
        &lt;a class="nav-link" href="#"&gt;O nas&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="nav-item active"&gt;
        &lt;a class="nav-link" href="#"&gt;Cennik&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="nav-item active"&gt;
        &lt;a class="nav-link" href="#"&gt;Usługi&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="nav-item active"&gt;
        &lt;a class="nav-link" href="#"&gt;Rejestracja&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="nav-item active"&gt;
        &lt;a class="nav-link" href="#"&gt;Porady&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>