Css html tables with border on four sides - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Border

Description

Css html tables with border on four sides

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">
tr {<!--from  ww  w.j  a v a2 s. c om-->
   border:2px solid Chartreuse;
}

td {
   border:0;
   width:100px;
}
</style> 
 </head> 
 <body> 
  <table border="1" id="table"> 
   <tbody> 
    <tr> 
     <td>Lorem ipsum d</td> 
     <td>Lorem ipsum d</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum d</td> 
     <td>Lorem ipsum d</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum d</td> 
     <td>Lorem ipsum d</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials