Create nav bar menu - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Bar

Description

Create nav bar menu

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">
nav {<!--from  w  ww .  j  a  v  a2  s .  c o  m-->
   padding-top:6px;
   padding-bottom:6px;
   margin-bottom:21px;
   background-color:Chartreuse;
   border:2px solid yellow;
}

ul {
   list-style-type:none;
   position:relative;
}

li {
   display:inline-block;
   width:19%;
   margin:auto;
   text-decoration:none;
   font-size:2.3em;
   padding-left:2%;
   border-left:2px solid blue;
}

a {
   color:pink;
   font-size:2.3em;
   text-decoration:none;
}
</style> 
 </head> 
 <body> 
  <nav> 
   <ul> 
    <li> <a href="index.html">Lorem i</a> </li> 
    <li> <a href="services.html">Lorem ip</a> </li> 
    <li> <a href="guestbook.html">Lorem ips</a> </li> 
    <li> <a href="locations.html">Lorem ips</a> </li> 
    <li> <a href="contact.html">Lorem ipsu</a> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials