I have a table with left and right borders only on the inside cells, the following is the markup and CSS that I have:
<!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-css -->table {
border-collapse: collapse;
}
td {
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
border-top: 1px solid #aaa;
padding: 10px;
}
td:first-child {
border-left: 0;
}
<!-- language: lang-html -->
<table>
<tbody>
<tr>
<td rowspan="2">Cell with Rowspan</td>
<td>cell</td>
<td>cell</td>
<td>cell</td>
</tr>
<tr>
<td>cell</td>
<td>cell</td>
<td>cell</td>
</tr>
<tr>
<td>cell</td>
<td>cell</td>
<td>cell</td>
<td>cell</td>
</tr>
</tbody>
<!-- end snippet -->
The output works fine in Chrome but Firefox and IE (current version) does not display the left border of the cell in the second row
Is there a problem with how I implemented it the CSS or should I just use classes on the 2nd row?
Here's a working preview in codepen