title: How to add left border with full height in li element?
body: <p>I am creating a simple menu but I am getting an issue in the border. I have to display full left border in li elements.Would you help me in this?</p>
  
  <p>I am getting output like this.
  <a href="https://i.stack.imgur.com/IcET9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IcET9.png" alt="enter image description here"></a>
  I need output like this.
  <a href="https://i.stack.imgur.com/ZqDGk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZqDGk.png" alt="enter image description here"></a>
  <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>body{
   margin: 0;
   padding: 0;
  }
  .dash-menu
  {
  background-color: #763E9B;
  width: 100%;
  min-height: 100px;
  color: #fff;
  }
  .dash-menu h2
  {
   float: left;
  }
  .dash-header ul
  {
   float:right;
   list-style: none;
  }
  .dash-header li{
   float: left;
   margin: 20px;
  }
  .dash-header li:before{
  content: '|';
  color: #A569BD;
  display: inline-block;
  border-left: 3px solid yellow; 
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/&gt;
  &lt;div class="dash-menu"&gt;
   &lt;h2&gt;Hi , Welcome back&lt;/h2&gt;
  &lt;div class="dash-header"&gt;
  &lt;ul&gt;
  &lt;li&gt;Menu1&lt;/li&gt;
  &lt;li&gt;Menu2&lt;/li&gt;
  &lt;li&gt;Menu3&lt;/li&gt;
  &lt;li&gt;&lt;i class="fa fa-bars" aria-hidden="true"&gt;&lt;/i&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;img src=""&gt;
  &lt;/div&gt;&lt;!--dash-header--&gt;
  &lt;/div&gt;&lt;!--dash-menu--&gt;</code></pre>
  </div>
  </div>
  </p>