Horizontal menu items displaying inline - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Item

Description

Horizontal menu items displaying inline

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">
#menu {<!-- w ww  .ja v  a  2  s .co m-->
   float:right
}

#menu>li {
   display:inline-block;
   list-style:none;
   border-top:5px solid Chartreuse;
   padding-top:21px;
   margin-top:26px;
}
</style> 
 </head> 
 <body> 
  <div id="menu"> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li>Lore</li> 
   <li>Lore</li> 
  </div> 
  <!-- menu -->  
 </body>
</html>

Related Tutorials