Stack Table-styled Divs by Column - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Table

Description

Stack Table-styled Divs by 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">
.Wrapper {<!--from   w w  w  .j  a  v a  2  s  . c o m-->
   width:100%;
}

.Column {
   width:33%;
   float:left;
   text-align:center;
}

@media only screen and (max-width: 750px) {
   .Column {
      width:33%;
      margin-right:68%;
   }

}
</style> 
 </head> 
 <body> 
  <div id="Wrapper"> 
   <div class="Column"> 
    <div class="Header">
      Lorem ipsu 
    </div> 
    <div class="Content">
      Lorem ips 
    </div> 
   </div> 
   <div class="Column"> 
    <div class="Header">
      Lorem ipsu 
    </div> 
    <div class="Content">
      Lorem ips 
    </div> 
   </div> 
   <div class="Column"> 
    <div class="Header">
      Lorem ipsu 
    </div> 
    <div class="Content">
      Lorem ips 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials