Create space between left border of vertically aligned list items - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-left

Description

Create space between left border of vertically aligned list items

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

.leftNavbar {<!-- w w  w  .  j  av a2s.  c  o  m-->
   position: absolute;
   top: 100px;
   z-index: 500;
   left: 50px;
   vertical-align: middle;
}
.leftNavbar ul {
   list-style: none;
}
.leftNavbar ul li {
   height: 100px;
   text-transform: uppercase;
   color: white;
   font-weight: bold;
   text-shadow: 0px 0px 2px #000;
   vertical-align: middle;
   line-height:100px;
   border-left:4px solid blue;
   margin-bottom:5px;
}


      </style> 
 </head> 
 <body> 
  <div class="leftNavbar"> 
   <span class="navLine"></span> 
   <ul> 
    <li>Introduction</li> 
    <li>Whats new?</li> 
    <li>Gallery</li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials