Html Css Fluid Layout - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Layout

Description

Html Css Fluid Layout

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">
* {<!-- w w w  .  j  a  v  a  2 s .c o m-->
   margin:0;
   padding:0;
}

html,body {
   height:100%;
}

.template
 {
   height:100%;
}

.template-header
 {
   background:red;
   height:11%;
}

.template-navigation
 {
   background:grey;
   height:6%;
}

.template-content
 {
   background:silver;
   height:81%;
}

.template-content-left
 {
   float:left;
   background:lime;
   height:100%;
   width:201px;
}

.template-content-middle
 {
   background:magenta;
   width:calc(100% - 401px);
   height:100%;
   float:left;
}

.template-content-right
 {
   float:left;
   background:dodgerblue;
   height:100%;
   width:201px;
}

.template-footer
 {
   background:blue;
   height:6%;
}
</style> 
 </head> 
 <body> 
  <div class="template"> 
   <div class="template-header"></div> 
   <div class="template-navigation"></div> 
   <div class="template-content"> 
    <div class="template-content-left"></div> 
    <div class="template-content-middle"></div> 
    <div class="template-content-right"></div> 
   </div> 
   <div class="template-footer"></div> 
  </div>  
 </body>
</html>

Related Tutorials