Set <table> border width with CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Width

Description

Set <table> border width with CSS

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 . j  a va2 s  .c  om-->
   border-color:Chartreuse;
   border-width:2px;
   border-style:solid;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem ipsum dolor sit</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum dolor sit</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials