Two columns liquid layout with header and footer - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Two columns liquid layout with header and footer

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{
   padding:0;
   margin:0;
   position:relative;
   height:100%
}
.header, .footer{<!--from   w ww .j  av a  2  s  .  co m-->
   width:100%;
   background:red;
   padding:10px;
   box-sizing:border-box;
}
.content{
   background:#eee;
   width:100%;
   padding:10px;
   height:100%;
   box-sizing:border-box;
   padding:10px;
}
.left{
   width:50%;
   float:left;
   background:#bbb;
   height:100%;
}
.right{
   width:50%;
   float:right;
   background:#aaa;
   height:100%;
}


      </style> 
 </head> 
 <body> 
  <div class="header">
    header content 
  </div> 
  <div class="content"> 
   <div class="left">
     left 
   </div> 
   <div class="right">
     right 
   </div> 
  </div> 
  <div class="footer">
    footer content 
  </div>  
 </body>
</html>

Related Tutorials