Fluid layout with three columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Layout

Description

Fluid 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 {
   width:100%
}

.green {<!-- w w w.j ava 2 s .  co m-->
   width:calc((100% - 401px)/3);
   height:201px;
   background:green;
   float:left;
}

.red {
   width:401px;
   height:201px;
   background:red;
   float:left;
}

.lilac {
   width:calc((100% - 401px)/3);
   height:201px;
   background:lavender;
   float:left;
}
</style> 
 </head> 
 <body> 
  <div class="green"></div> 
  <div class="red"></div> 
  <div class="lilac"></div>  
 </body>
</html>

Related Tutorials