Header/Footer Layout with three columns - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer Column

Description

Header/Footer Layout with three columns

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">
html, body {
   height:100%;
   margin:0;
   padding:0;
}

#container {<!--from  w  w  w  .j  ava2 s . co  m-->
   display:table;
   height:100%;
   width:100%;
   text-align:center;
}

.row {
   display:table-row;
   width:100%;
   height:100%;
}

.header, .footer {
   background:pink;
   display:table-row;
   text-align:center;
   vertical-align:middle;
}

.content {
   display:table;
   background:brown;
   width:100%;
   height:100%;
   overflow:auto;
}

.left, .right {
   background:green;
   display:table-cell;
   width:11%;
   vertical-align:middle;
}

.middle {
   background:brown;
   display:table-cell;
   vertical-align:middle;
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div class="header"> 
    <h4>Lorem ipsum do</h4> 
   </div> 
   <div class="row"> 
    <div class="content"> 
     <div class="left">
       Lorem ipsu 
     </div> 
     <div class="middle">
       Lorem ipsum 
      <br>Lorem ipsum 
      <br>Lorem ipsum 
      <br>Lorem ipsum 
      <br>Lorem ipsum 
      <br> 
     </div> 
     <div class="right">
       Lorem ipsum 
     </div> 
    </div> 
   </div> 
   <div class="footer"> 
    <h4>Lorem ipsum do</h4> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials