Make List Border Filling Div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

Make List Border Filling Div

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">

#navbar{<!-- ww  w .  jav a  2  s  .  c om-->
   background-image: url('https://www.java2s.com/style/demo/Firefox.png');
   color: white;
   font: 25px arial,sans-serif;
   height: 45px;
}
#navbar a{
   color: white;
   text-decoration: none;
}
#navbar ul{
   list-style: none;
   margin: 5;
   padding: 5;
}
#navbar li{
   border-left: solid 1px white;
   display: inline-block;
   padding: 1px 10px 1px 1px;
   margin: 0 10px;
   line-height: 45px;
}


      </style> 
 </head> 
 <body> 
  <div class="clear" id="navbar" style="background-color: #ccc;"> 
   <ul> 
    <li> <a href="#">Home</a> </li> 
    <li> <a href="#">Start</a> </li> 
    <li> <a href="#">About</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials