Two column elements of variable height div stacking - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Two column elements of variable height div stacking

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>

.wrapper{<!--from w  w w.  j  a v a2 s. c  o m-->
   width: 1000px;
}
.cl{
   clear: left;
}
.cr{
   clear: right;
}
.bubble{
   width: 400px;
   box-sizing: border-box;
   display: block;
   border: 1px solid #ccc;
   padding: 10px;
   margin-top: 10px;
}
.fl{
   float: left;
}
.fr{
   float: right;
}
* {
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
}


      </style> 
 </head> 
 <body translate="no"> 
  <div class="wrapper"> 
   <div class="col-mde-6 fr cr"> 
    <div class="bubble"> 
     <p> this is a test this is a test this is a test this is a test </p> 
    </div> 
    <div class="bubble"> 
     <p> this is a test this is a test this is a test this is a test this is a test this is a test </p> 
    </div> 
   </div> 
   <div class="col-mde-6 fl cl"> 
    <div class="bubble"> 
     <p> this is a test this is a test this is a test this is a test this is a test this is a test this is a test </p> 
    </div> 
    <div class="bubble"> 
     <p> this is a test this is a test this is a test this is a test this is a test this is a test this is a test </p> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials