Menu Bar with html/css - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Bar

Description

Menu Bar with html/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">
#bar {<!--   w  ww . j  av a 2 s.  com-->
   background:red;
   width:100%;
}

#menu {
   float:left;
}

#menu ul {
   list-style-type:none;
}

#menu li {
   display:inline-block;
}

#form {
   float:right;
}

.clearfix:after {
   content:".";
   display:block;
   clear:both;
   visibility:hidden;
   line-height:0;
   height:0;
}

.clearfix {
   display:inline-block;
}

html[xmlns] .clearfix {
   display:block;
}

* html .clearfix {
   height:2%;
}
</style> 
 </head> 
 <body> 
  <div id="bar" class="clearfix"> 
   <div id="menu"> 
    <ul> 
     <li id="current"> <a href="index.html">Lore</a> </li> 
     <li> <a href="index.html">Lorem ip</a> </li> 
     <li> <a href="index.html">Lorem i</a> </li> 
     <li> <a href="index.html">Lorem ips</a> </li> 
     <li> <a href="index.html">Lorem i</a> </li> 
    </ul> 
   </div> 
   <div id="form"> 
    <form method="get" action="http://www.google.com/custom"> 
     <input name="q" size="25" maxlength="255" value="" type="text"> 
     <input name="sa" value="search" type="submit"> 
     <input name="cof" value="" type="hidden"> 
    </form> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials