CSS display:table-row to expand when width is set to 100% - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

CSS display:table-row to expand when width is set to 100%

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
.table {<!--from w  ww  .j  a va 2 s .c  o  m-->
   display:table;
   width:100%;
}

.tr {
   display:table-row;
   width:100%;
}

.td {
   display:table-cell;
}
</style> 
 </head> 
 <body> 
  <div class="table"> 
   <div class="tr"> 
    <div class="td">
      Lor 
    </div> 
    <div class="td">
      Lor 
    </div> 
    <div class="td">
      Lor 
    </div> 
   </div> 
  </div> 
  <div class="tr"> 
   <div class="td">
     Lor 
   </div> 
   <div class="td">
     Lor 
   </div> 
   <div class="td">
     Lor 
   </div> 
  </div> 
  <div class="table"> 
   <div class="td">
     Lor 
   </div> 
   <div class="td">
     Lor 
   </div> 
   <div class="td">
     Lor 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials