resize the horizontal menu with respect to its li - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

resize the horizontal menu with respect to its li

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 ul {
   display:block;
   text-align:center;
   width:100%;
   background:brown;
}

#menu ul li {
   display:inline-block;
   height:31px;
   padding:11px 13px 0 13px;
   background:Chartreuse;
}
</style> <!--   w w w  . j  av  a2s .co m-->
 </head> 
 <body> 
  <div id="menu"> 
   <ul> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials