HTML CSS examples for CSS Widget:Table Border
TH overriding table border
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> table {<!-- w ww.j a v a2 s .c o m--> border-style:none none dotted; border-collapse:collapse; } table th { border:3px solid Chartreuse; } table td:first-child { border-left:dotted; } table td:last-child { border-right:dotted; } </style> </head> <body> <table> <thead> <tr> <th>Lorem i</th> <th>Lorem i</th> <th>Lorem i</th> </tr> </thead> <tbody> <tr> <td>Lore</td> <td>Lore</td> <td>Lore</td> </tr> <tr> <td>Lore</td> <td>Lore</td> <td>Lore</td> </tr> <tr> <td>Lore</td> <td>Lore</td> <td>Lore</td> </tr> </tbody> </table> </body> </html>