HTML: Table border-left with first column hidden - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

HTML: Table border-left with first column hidden

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 .  jav a 2s  .  c o  m-->
   border-collapse:collapse;
}

.a {
   border:2px solid Chartreuse;
}

table .td-hide {
   display:none;
}

table tr {
   border-bottom:2px solid yellow;
}

table td {
   border-left:2px solid blue;
}

table td:nth-of-type(2) {
   border:0;
}
</style> 
 </head> 
 <body> 
  <div class="a"> 
   <table> 
    <tbody> 
     <tr> 
      <td hidden> </td> 
      <td>Lorem ip</td> 
      <td>Lorem ip</td> 
     </tr> 
     <tr> 
      <td class="td-hide"> </td> 
      <td>Lorem ip</td> 
      <td>Lorem ip</td> 
     </tr> 
     <tr> 
      <td class="td-hide"> </td> 
      <td>Lorem ip</td> 
      <td>Lorem ip</td> 
     </tr> 
    </tbody> 
   </table> 
  </div>  
 </body>
</html>

Related Tutorials