title: How to set border-left for nav menu in css?
body: <p>Here is my worked jsfiddle: <a href="http://jsfiddle.net/nalinc/rym2zku1/9/" rel="noreferrer">http://jsfiddle.net/nalinc/rym2zku1/9/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>nav ul,
  nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-item ul {
    padding: inherit;
    border: 1px solid black;
    text-align: left;
    border-radius: 4px;
  }
  .nav-item ul li:hover {
    background-color: #d1d1d1;
  }
  .nav-bar {
    text-align: center;
  }
  @media screen and (min-width: 769px) {
    .nav-bar--left {
      display: table;
      table-layout: fixed;
      width: 100%;
      text-align: left;
    }
    .nav-bar--left .grid-item {
      float: none;
      display: table-cell;
      vertical-align: middle;
    }
  }
  #nav {
    position: relative;
    display: block;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", sans-serif;
    white-space: nowrap;
  }
  .nav-bar--left #nav {
    margin: 1em 0 0;
    text-align: right;
  }
  @media screen and (max-width: 768px) {
    #nav,
    .nav-bar--left #nav {
      width: 100%;
      white-space: normal;
      margin: 20px 0 10px;
      text-align: inherit;
    }
  }
  .nav-item {
    position: relative;
    display: inline-block;
    padding: 2px 30px;
  }
  @media screen and (max-width: 768px) {
    .nav-item {
      padding: 10px 20px;
    }
  }
  #nav&gt;.nav-item {
    border-left: 1px solid #e8e8e8;
  }
  #nav&gt;.nav-item.first {
    border-left: none;
    padding-left: 0;
  }
  @media screen and (max-width: 768px) {
    #nav&gt;.nav-item {
      border: 0 none;
    }
  }
  .nav-item-link {
    display: inline-block;
    color: #211f1f;
    font-size: 14px;
    zoom: 1;
    *display: inline;
  }
  .nav-item-link:hover {
    color: #333;
  }
  .nav-item-link .nav-item.active .nav-item-link {
    color: #333333;
  }
  .sub-nav .sub-nav {
    display: none !important;
  }
  .supports-no-csstransforms .sub-nav {
    white-space: normal;
    width: 200px;
    margin-left: -100px;
  }
  .sub-nav:before {
    content: '';
    display: block;
    position: absolute;
    top: 5px;
    right: 47%;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #211f1f;
    z-index: 40;
  }
  .sub-nav-item,
  #moreMenu--list .nav-item {
    display: block;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background-color: #211f1f;
  }
  .sub-nav-item.first,
  #moreMenu--list .nav-item:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
  .sub-nav-item.last,
  #moreMenu--list .nav-item:last-child {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }
  .sub-nav-item-link,
  #moreMenu--list .nav-item .nav-item-link {
    display: block;
    padding: 15px 20px;
    margin: 0;
    color: #ffffff;
    text-align: center;
    border-top: 1px solid #0b0a0a;
  }
  .sub-nav-item-link.first,
  .sub-nav-item-link:first-child,
  #moreMenu--list .nav-item .nav-item-link.first,
  #moreMenu--list .nav-item .nav-item-link:first-child {
    border-top: none;
  }
  .sub-nav-item-link:hover,
  .sub-nav-item-link:focus,
  #moreMenu--list .nav-item .nav-item-link:hover,
  #moreMenu--list .nav-item .nav-item-link:focus {
    color: #ffffff;
    border-top: 1px solid #0b0a0a;
    background-color: #0b0a0a;
  }
  .sub-nav-item-link:hover.first,
  .sub-nav-item-link:hover:first-child,
  .sub-nav-item-link:focus.first,
  .sub-nav-item-link:focus:first-child,
  #moreMenu--list .nav-item .nav-item-link:hover.first,
  #moreMenu--list .nav-item .nav-item-link:hover:first-child,
  #moreMenu--list .nav-item .nav-item-link:focus.first,
  #moreMenu--list .nav-item .nav-item-link:focus:first-child {
    border-top: none;
  }
  #nav {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-align: center
  }
  #nav a {
    text-decoration: none;
    color: #666;
    display: inline-block;
    padding: 10px;
    font-size: 13px;
  }
  #nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    text-align: left;
    width: 170px;
    border: 1px solid #ccc;
    display: none;
  }
  #nav li:hover ul {
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav id="navWrap" role="navigation"&gt;
    &lt;ul id="nav"&gt;
      &lt;li class="nav-item first active"&gt;
        &lt;a class="nav-item-link" href="/"&gt;Home&lt;/a&gt;                
      &lt;/li&gt;
      &lt;li class="nav-item"&gt;
        &lt;a class="nav-item-link" href="catalog.html"&gt;Catalog&lt;/a&gt;  
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Data Listing&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Web Scheduling&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Google Maps Application&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;         
      &lt;/li&gt;
      &lt;li class="nav-item"&gt;
        &lt;a class="nav-item-link" href="/blogs/news"&gt;Blog&lt;/a&gt;                
      &lt;/li&gt;
      &lt;li class="nav-item"&gt;
        &lt;a class="nav-item-link" href="/pages/about-us"&gt;About Us&lt;/a&gt;                
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now I need to <code>border-left</code> for each list.</p>
  
  <p>I need like this image:</p>
  
  <p><img src="https://i.stack.imgur.com/Vfk13.png" alt="enter image description here"></p>
  
  <p>When I add <code>border-left</code>, it will be touched in the <code>border-bottom</code>.</p>
  
  <pre class="lang-css prettyprint-override"><code>#nav ul {
      position: absolute;
      top: 100%;
      left: 0;
      text-align: left;
      width: 170px;
      border: 1px solid #ccc;
      display: none;
  }
  </code></pre>
  
  <p>Can anyone help me to fix this? Thanks in advance.</p>