Position stack of div in column - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Position stack of div in column

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 {
   margin : 0;
   padding : 0;
}
.box{<!--   ww  w.  ja v  a  2 s.co  m-->
   border : 2px inset grey;
   border-radius : 6px;
   float : left;
   width : 30%;
   margin : 0 1.5%;
   box-sizing : border-box;
}
.boxTitle{
   color : #FF6600;
   border : 2px inset grey;
}


      </style> 
 </head> 
 <body> 
  <div class="box"> 
   <div class="boxTitle">
     My title 
   </div> 
   <div class="boxContent">
     My content 
   </div> 
   <div class="botBottom">
     &nbsp; 
   </div> 
  </div> 
  <div class="box"> 
   <div class="boxTitle">
     My second title 
   </div> 
   <div class="boxContent">
     My second content 
   </div> 
   <div class="botBottom">
     &nbsp; 
   </div> 
  </div> 
  <div class="box"> 
   <div class="boxTitle">
     My second title 
   </div> 
   <div class="boxContent">
     My second content 
   </div> 
   <div class="botBottom">
     &nbsp; 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials