Growing box - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Growing box

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head> 
  <style type="text/css">
body {<!--from   w ww.  j a va 2s.c  o  m-->
   width:801px;
   margin:0px auto;
   position:relative;
}

#nav {
   width:201px;
   height:100%;
   position:absolute;
   left:0px;
   background:Chartreuse;
}

#content {
   margin:0px 0px 0px 201px;
   heigth:1001px;
   background:yellow;
}
</style> 
 </head> 
 <body> 
  <div id="nav"> 
  </div> 
  <div id="content"> 
  </div>  
 </body>
</html>

Related Tutorials