title: Put a line between links in html navigation bar
body: <p>In the below html and css code how I can add separator or line between two link tag not after the link<br>
  the line should be in the middle of two link tag not after element tag </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>&lt;style&gt;
  ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      overflow: hidden;
  }
  
  li {
      float: left;
  }
  
  a:link, a:visited {
      display: block;
      width: 120px;
      font-weight: bold;
      color: #FFFFFF;
      background-color: #98bf21;
      text-align: center;
      padding: 4px;
      text-decoration: none;
      text-transform: uppercase;
  }
  
  a:hover, a:active {
      background-color: #7A991A;
  }
  &lt;/style&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;ul&gt;
    &lt;li&gt;&lt;a href="#home"&gt;Home |&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#news"&gt;News |&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#contact"&gt;Contact |&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#about"&gt;About |&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>