Cell bottom border inside a table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Cell bottom border inside a table

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">
.reportTable th,td {
   border-bottom:2px solid Chartreuse;
}

table td + td, table th + th {
   position:relative;
   left:31px;
}

table td + td + td, table th + th + th {
   position:relative;
   left:61px;
}
</style> <!--from w  w w . j av a 2  s  .  co m-->
 </head> 
 <body> 
  <thread> 
  </thread> 
  <div> 
  </div> 
  <div> 
  </div> 
  <div> 
  </div> 
  <div> 
  </div> 
  <table class="reportTable"> 
   <tbody> 
    <tr> 
     <th>Lorem ipsum</th> 
     <th>Lorem ipsum </th> 
     <th>Lorem ipsum</th> 
    </tr> 
   </tbody> 
   <tbody> 
    <tr> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>Lo</td> 
     <td>Lo</td> 
     <td>Lo</td> 
    </tr> 
    <tr> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials