Menu item positioning - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Item

Description

Menu item positioning

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">
ul#navigation {<!-- ww w .  j a  v  a 2 s .com-->
   display:inline-block;
   list-style-type:none;
}

ul#navigation li {
   display:inline-block;
   height:36px;
   border-right:2px solid Chartreuse;
   vertical-align:top;
}

ul#navigation li a {
   display:block;
   color:yellow;
   line-height:36px;
   text-decoration:none;
   font-size:14px;
   font-weight:bold;
}

ul#navigation li a:hover {
   color:blue;
}

ul#navigation li a:active {
   position:relative;
   top:2px;
}

ul#navigation li#nav_logo {
   width:100px;
}

ul#navigation li#nav_spots {
   width:91px;
}

ul#navigation li#nav_spots a {
   text-align:center;
   font-size:14px;
}

ul#navigation li#nav_spots a:hover {
}
ul#navigation li#nav_events {
   width:91px;
}

ul#navigation li#nav_events a {
   text-align:center;
}

ul#navigation li#nav_groups {
   width:91px;
}

ul#navigation li#nav_groups a {
   text-align:center;
}

ul#navigation li#nav_login {
}
ul#navigation li#nav_login a {
   font-weight:normal;
}
</style> 
 </head> 
 <body> 
  <ul id="navigation"> 
   <li id="nav_logo"> <a href="#">Lore</a> </li> 
   <li id="nav_spots"> <a href="#">Lorem </a> </li> 
   <li id="nav_events"> <a href="#">Lorem </a> </li> 
   <li id="nav_groups"> <a href="#">Lorem </a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials