Create Header with menu - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

Create Header with menu

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">
html,<!--  www  .  jav  a 2  s  .c o  m-->
body {
   width:100%;
   height:100%;
   margin:0px;
   padding:0px;
   overflow-x:hidden;
   font-family:sans-serif, arial;
}

#toplocation {
   background-color:Chartreuse;
   color:yellow;
   margin-top:0;
   margin-bottom:0;
   margin-right:0;
   margin-left:0;
   padding-top:6px;
   padding-right:6px;
   padding-bottom:6px;
   padding-left:6px;
}

#heading {
   overflow:hidden;
   background-color:blue;
   color:pink;
   padding-top:15px;
   padding-right:15px;
   padding-bottom:15px;
   padding-left:15px;
}

#redline {
   background-color:OrangeRed;
   height:3px;
   border:0;
   padding:0;
}

ul#menu {
   padding:0;
}

ul#menu li {
   display:inline;
}

ul#menu li a {
   background-color:grey;
   color:BlueViolet;
   padding:5px 12px;
   text-decoration:none;
   border-radius:4px 4px 4px 4px;
}

ul#menu li a:hover {
   background-color:Chartreuse;
}

.title {
   display:inline-block;
}

.menu-container {
   display:inline-block;
   float:right;
}
</style> 
 </head> 
 <body> 
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css"> 
  <link rel="stylesheet" type="text/css" href="HomepageStyleSheet.css"> 
  <title>Lorem ipsum dolor sit am</title> 
  <div id="toplocation"> 
   <i class="fa fa-fax"></i>Lorem ipsum do 
   <i class="fa fa-map-  marker">Lorem ipsum dolor sit amet, con</i> 
  </div> 
  <div id="heading"> 
   <h3 class="title">Lorem ipsum dolor sit am</h3> 
   <div class="menu-container"> 
    <ul id="menu"> 
     <li> <a href="default.asp">Lore</a> </li> 
     <li> <a href="news.asp">Lorem ip</a> </li> 
     <li> <a href="contact.asp">Lorem ipsum dol</a> </li> 
     <li> <a href="about.asp">Lorem ipsu</a> </li> 
    </ul> 
   </div> 
  </div> 
  <div id="redline"></div>  
 </body>
</html>

Related Tutorials