<div class="container">
<table class="show">
<caption><em>Visible empty cells.</em></caption>
<thead>
<tr>
<th>Header content 1</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<td>Footer content 1</td>
<td>Footer content 2</td>
</tr>
</tfoot>
<tbody>
<tr>
<td></td>
<td>Body content 2</td>
</tr>
</tbody>
</table>
<table class="hide">
<caption><em>Hidden empty cells.</em></caption>
<thead>
<tr>
<th>Header content 1</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<td>Footer content 1</td>
<td>Footer content 2</td>
</tr>
</tfoot>
<tbody>
<tr>
<td></td>
<td>Body content 2</td>
</tr>
</tbody>
</table>
</div>
body {
color: #555;
font-size: 1.1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.container {
margin: 40px auto;
max-width: 900px;
}
table {
margin: 2em auto;
}
table,
td,
th {
padding: 1em;
border: 1px solid #aaa;
}
.show {
empty-cells: shows;
}
.hide {
empty-cells: hide;
}
caption {
padding: .5em;
color: #0099CC;
}
.separate {
border-collapse: separate;
}
.collapsed {
border-collapse: collapse;
}