Removing border from table cells - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Removing border from table cells

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 {<!--   w w w. j  a v  a 2 s  .c  o  m-->
   border-spacing:0px;
   border:2px solid Chartreuse;
}

td, th {
   width:21px;
   height:21px;
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <table> 
   <thead> 
    <tr> 
     <th></th> 
     <th></th> 
    </tr> 
   </thead> 
   <tbody> 
    <tr> 
     <td></td> 
     <td></td> 
    </tr> 
    <tr> 
     <td></td> 
     <td></td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials