Center a menu with left align items - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Item

Description

Center a menu with left align items

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
.extPanel {<!--from w w w  .  ja va  2  s.  c o  m-->
   margin:0 21%;
   background-color:Chartreuse;
   text-align:center;
}

.menuElement {
   display:inline-block;
   width:201px;
   height:201px;
   margin:0 21px 21px 0;
   border:solid;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="extPanel"> 
   <div class="menuElement">
     Lorem i 
   </div> 
   <div class="menuElement">
     Lorem i 
   </div> 
   <div class="menuElement">
     Lorem i 
   </div> 
   <div class="menuElement">
     Lorem i 
   </div> 
   <div class="split"></div>Lorem ipsum dolor sit amet, consectetur adipi 
  </div>  
 </body>
</html>

Related Tutorials