Menu to center - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

Menu to center

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-wrap .nav-container<!--from   w w  w. ja  v a  2  s  .com-->
 {
   margin-top:11px;
   text-align:center;
   z-index:3;
}

#nav-wrap .nav-container ul
 {
   display:inline-block;
   list-style:none;
   padding:0;
   z-index:3;
}

#nav-wrap .nav-container li
 {
   display:inline-block;
}

#nav-wrap .nav-container a
 {
   color:Chartreuse;
   float:left;
   font:601 13px 'Josefin Sans', sans-serif;
   letter-spacing:3px;
   margin:11px 16px;
   padding:2px 3px;
   text-align:center;
   text-decoration:none;
   text-transform:uppercase;
   white-space:nowrap;
}

#nav-wrap .nav-container a:hover
 {
   border-bottom:2px dashed yellow;
}

#nav-wrap .nav-container li#active a
 {
   border-bottom:2px solid blue;
}

#nav-wrap .nav-container a:active
 {
   padding:3px 3px 0px;
}

#nav-wrap
 {
   overflow:hidden;
}
</style> 
 </head> 
 <body> 
  <div id="nav-wrap"> 
   <div class="nav-container"> 
    <ul class="wsite-menu-default"> 
     <li id="active"> <a href="/index.html">Lore</a> </li> 
     <li id=""> <a href="/about.html">Lorem</a> </li> 
    </ul> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials