Set Div table-row Border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Table

Description

Set Div table-row Border

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">
.table {<!--from   w  w w. j  a v  a 2s  .  c  o  m-->
   display:table;
   width:100%;
}

.row {
   display:table-row;
}

.cell {
   display:table-cell;
   width:34%;
   border-bottom:2px solid Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="table"> 
   <div class="row"> 
    <div class="cell"> 
     <p>Lorem ips</p> 
    </div> 
    <div class="cell"> 
     <p>Lorem ips</p> 
    </div> 
    <div class="cell"> 
     <p>Lorem ips</p> 
    </div> 
   </div> 
   <div class="row"> 
    <div class="cell"> 
     <p>Lorem ips</p> 
    </div> 
    <div class="cell"> 
     <p>Lorem ips</p> 
    </div> 
    <div class="cell"> 
     <p>Lorem ips</p> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials