TH overriding table border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Border

Description

TH overriding table border

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 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>

Related Tutorials