Create etched border for table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Create etched border for table cell

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>  gc-nomade</title> 
  <style>

table {<!--from w ww . ja va  2  s. co m-->
   background:lightgray;
   border-collapse:collapse;
   box-shadow:0 0 5px;
   width:100%;
}
td {
   padding:1em;
}
table tr td {
   border-top:solid 1px black;
   box-shadow:inset 0 1px 0 white
}
table tr:first-of-type td { border-top:none;box-shadow:0 0}
tr:before,tr:after {
   content:'';
   display:table-cell;
   width:10px;
}


      </style> 
 </head> 
 <body translate="no"> 
  <table> 
   <tbody> 
    <tr> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
    </tr> 
    <tr> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
    </tr> 
    <tr> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
    </tr> 
    <tr> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
    </tr> 
    <tr> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
     <td>cell</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials