"table with multiple headers on left"
Bootstrap 3.3.0 Snippet by memons

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<table class="table detail">
<tbody>
<tr>
<th>Row</th>
<td>1</td>
<th>Row 2</th>
<td>3</td>
</tr>
<tr>
<th>First Name</th>
<td>John</td>
<th>Other Name</th>
<td>John</td>
</tr>
<tr>
<th>Last Name</th>
<td>Carter</td>
<th>Whatever</th>
<td>Rambo</td>
</tr>
<tr>
<th>Email</th>
<td>johncarter@mail.com</td>
<th>Personal Email</th>
<td>johnrambo@mail.com</td>
</tr>
</tbody>
</table>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
.detail table, th, td {
border: 1px solid lightgrey;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: