Adding border to UL LI item - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Adding border to UL LI item

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>

ul li {
   display:inline-block;
   position:relative;
   top:-15px;
   width:800px;
   border:1px solid gray;
}
#home {<!--  ww w  .  ja va 2  s.c  o m-->
   position:relative;
   display:inline-block;
}


      </style> 
 </head> 
 <body translate="no"> 
  <nav> 
   <ul> 
    <li> <a class="vari" href="#" id="home"> <span>Home</span> </a> </li> 
    <li> <a class="vari" href="">Music videos</a> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials