How can I create left side headings in tables? For example, I have the following table:
<table border="1" cellspacing="0">
<thead>
<tr>
<th>Titulo 1</th>
<th>Titulo 2</th>
<th>Titulo 3</th>
<th>Titulo 4</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
</tbody>
<tbody style="background: #bdbdbd;">
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
</tbody>
<tbody>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
</tbody>
<tbody style="background: #bdbdbd;">
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
<tr>
<td>Ejemplo 1</td>
<td>Ejemplo 2</td>
<td>Ejemplo 3</td>
<td>Ejemplo 4</td>
</tr>
</tbody>
and so it would look in the browser:
As you can see I have severed the tbody
color as it should be, I want to add an extra header left to each of these tbody
to indicate the separation, something like flanges
Note: I have tried with rowspan and the idea is that they are not inside the table, if not on the side, like tabs.
How do I do that? Thanks!