implement DIV for table structure - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Table

Description

implement DIV for table structure

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">
.cell {<!-- w  w w  . j  av  a 2 s.  co m-->
   float:left;
   width:51%;
}

.cell_inner {
   border:2px solid Chartreuse;
   padding:6px;
   margin:2px;
}
</style> 
 </head> 
 <body> 
  <div> 
   <div> 
    <div class="cell"> 
     <div class="cell_inner">
       Lorem 
     </div> 
    </div> 
    <div class="cell"> 
     <div class="cell_inner">
       Lorem 
     </div> 
    </div> 
   </div> 
   <div> 
    <div class="cell"> 
     <div class="cell_inner">
       Lorem 
     </div> 
    </div> 
    <div class="cell"> 
     <div class="cell_inner">
       Lorem 
     </div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials