Stray border in table column header - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Stray border in table column header

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, td
 {
   border-color:Chartreuse;
   border-style:solid;
}

table<!--  ww  w .ja v a  2 s . c  o  m-->
 {
   border-width:0 0 2px 0px;
   border-spacing:0;
   border-collapse:collapse;
   margin:11px;
}

td
 {
   margin:0;
   padding:5px;
   border-width:2px 2px 0 2px;
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <table border="0" cellpaddin="0" cellspacing="0"> 
   <tbody> 
    <tr> 
     <th style="width: 100px;">Lorem </th> 
     <th style="width: 180px;">Lorem </th> 
     <th style="width: 100px;">Lorem </th> 
     <th style="width: 100px;">Lorem </th> 
     <th style="width: 180px;">Lorem </th> 
     <th style="width: 180px;">Lorem </th> 
     <th>Lorem </th> 
    </tr> 
    <tr> 
     <td>Lore</td> 
     <td>Lore</td> 
     <td>Lore</td> 
     <td>Lore</td> 
     <td>Lore</td> 
     <td>Lore</td> 
     <td> <a href="">Lore</a> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials