Here is a sample of my current code: jsfiddle
The problem is, the dark gray line between the table header and body is getting cut by the margin-right of the cells. I want to have a that border between columns and a non-breaked margin between header and body table.
Here is the HTML:
<table id="prazo"> <thead> <tr> <th>month</th> <th> val </th> <th> val </th> <th> val </th> <th> val </th> <th> val </th> <th>val</th> </tr> </thead> <tbody> <tr class="srow"> <td>January</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> </tr> <tr> <td>January</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> </tr> <tr class="srow"> <td>January</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> <td>$100</td> </tr> </tbody> </table> and the css:
#prazo { font-family: 'Bitter', serif; width: 100%; border-spacing:0; border-collapse:collapse; } #prazo thead tr{ height: 50px; background-color: #ffffff; font-weight:bold; border-bottom: 3px solid #7d7d7d !important; } #prazo td, th { padding-left: 10px; padding-right: 10px; font-size: 14px; height: 30px; background-color: #ffffff; border-right: 3px solid #f6f6f6; } .srow td { background-color: #f2f2f2 !important; } #prazo th { font-size: 16px; }