I have a table in the following format:
+----------+----------+
| record 1 | record 2 |
+----------+----------+
| record 3 | record 4 |
+----------+----------+
| record 5 | record 6 |
+----------+----------+
Now, I would like to insert an integrated row at the top of it, similar to this layout:
+---------------------+
| Table Name |
+----------+----------+
| record 1 | record 2 |
+----------+----------+
| record 3 | record 4 |
+----------+----------+
| record 5 | record 6 |
+----------+----------+
Below are my code snippets:
HTML:
<table cellspacing="0">
<tr>
<td>
Table Name
</td>
</tr>
<tr>
<td>record 1</td>
<td>record 2</td>
</tr>
<tr>
<td>record 3</td>
<td>record 4</td>
</tr>
<tr>
<td>record 5</td>
<td>record 6</td>
</tr>
</table>
CSS:
td{
padding: 5px;
border: 1px solid;
}
You can also view a live demo here.
Is there a way for me to achieve this desired structure?