Full width menu by CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

Full width menu by CSS

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">
.main_nav ul {<!--   w  ww  . j  a v a2  s .  co m-->
   position:relative;
   float:left;
   min-width:100%;
   padding:0;
   border:2px solid Chartreuse;
}

.main_nav ul li {
   list-style:none;
   float:none;
   display:inline;
}

.main_nav ul li a {
   padding:11px 16px;
   text-decoration:none;
}
</style> 
 </head> 
 <body> 
  <div class="main_nav second" style="min-width: 100%;"> 
   <ul> 
    <li> <a href="#">Lore</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
    <li> <a href="#">Lorem ipsu</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials