Displaying divs like tables with row span - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Table

Description

Displaying divs like tables with row span

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">
.div1 {<!--from ww  w. j a  v  a  2 s .co m-->
   border:2px solid Chartreuse;
   float:left;
   width:21%;
}

.div2 {
   border:2px solid yellow;
   width:51%;
}

.table {
   width:801px;
}
</style> 
 </head> 
 <body> 
  <div class="table"> 
   <div class="div1">
     Lor 
   </div> 
   <div class="div2">
     Lor 
   </div> 
   <div class="div2">
     Lor 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials