Change the position of links within div header - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

Change the position of links within div header

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">

#header {<!--from w  w w .  j a  v  a  2 s. c  om-->
   border: 1px solid #ccc;
   overflow: hidden;
}
#header h1 {
   float: left;
}
#header ul {
   float: right;
}
#header li {
   display: inline;
}


      </style> 
 </head> 
 <body> 
  <div id="header"> 
   <h1>LOGO</h1> 
   <ul> 
    <li> <a href=""> Home </a> </li> 
    <li> <a href=""> Logout </a> </li> 
   </ul> 
  </div> 
  <div id="navigation"> 
   <ul> 
    <li> <a href="">Home</a> </li> 
    <li> <a href="">Help</a> </li> 
    <li> <a href="">Contact Us</a> </li> 
    <li> <a href="">Customers</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials