Position element menu bar and panel - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

Position element menu bar and panel

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">
body {<!--from  w  w  w.  j  ava2 s .co  m-->
   background:Chartreuse;
   color:yellow;
   font-family:helvetica, sans-serif;
}

#nav {
   margin-top:0px;
   float:right;
}

ul li {
   float:left;
   list-style:none;
   margin-right:2em;
}

li a {
   color:blue;
   text-decoration:none;
   float:left;
   font-size:26px;
   padding:13px;
}

li a:hover {
   -webkit-transform:rotate(-11deg) scale(2.3);
   -moz-transform:rotate(-11deg) scale(2.3);
   -o-transform:rotate(-11deg) scale(2.3);
   color:pink;
}

#box {
   position:absolute;
   background-color:OrangeRed;
   width:151px;
   height:39px;
   margin-left:0px;
   clear:both;
   margin-top:201px;
}
</style> 
 </head> 
 <body> 
  <meta name="description" content="description"> 
  <link rel="stylesheet" media="screen" href="style123.css"> 
  <!--[if IE]>
            <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]--> 
  <title>Lorem ipsum d</title> 
  <div id="wrapper"> 
   <ul id="nav"> 
    <li> <a href="#">Lore</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lore</a> </li> 
    <li> <a href="#">Lorem i</a> </li> 
   </ul> 
   <div id="box"> 
    <h3>Lorem ipsu</h3> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials