Stacking divs in middle column for a three column layout - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Stacking divs in middle column for a three column 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">

.wrapper { width: auto; margin: 0 auto; } // Whatever width you want
.main { width: 75%; float: right; height: 200px; background: red; }
.sidebar-left { width: 25%; float: left; height: 200px; background: blue;}
.sidebar-right { width: 25%; float: right; height: 200px; background: green; }
.content { width: 50%; float: left; height:100px; background: purple;}
.content.bottom { background: orange; }


      </style> 
 </head> <!-- w  w  w .j  av  a  2s.co m-->
 <body> 
  <div class="wrapper"> 
   <div class="sidebar-left"></div> 
   <div class="main"> 
    <div class="sidebar-right"></div> 
    <div class="content top"></div> 
    <div class="content bottom"></div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials