Div position - three columns with header - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Div position - three columns with 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">
body,html {
   height:100%;
}

#header {<!--   w  w  w . j a  v a2s . c om-->
   width:100%;
   height:51px;
   background-color:Chartreuse;
}

#side {
   width:301px;
   height:100%;
   float:left;
   background-color:yellow;
}

#content {
   width:661px;
   height:100%;
   float:left;
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <div id="header"> 
  </div> 
  <div id="side"> 
   <p>Lorem</p> 
  </div> 
  <div id="content"> 
   <p>Lorem</p> 
  </div>  
 </body>
</html>

Related Tutorials