Wednesday, 18 September 2013

Reduce space between two rows in an HTML table

Reduce space between two rows in an HTML table

I have a table with multiple rows, for example five rows. I need to reduce
the gap between the third and fourth rows.
Below is my code:
<table>
<tr>
<td> First Row </td>
<td> 1 </td>
</tr>
<tr>
<td> Second Row </td>
<td> 2 </td>
</tr>
<tr>
<td> Third Row </td>
<td> 3 </td>
</tr>
<tr>
<td> Fourth Row </td>
<td> 4 </td>
</tr>
The result is
First 1
Second 2
Third 3
Fourth 4
I want to remove the gap between the third and fourth rows as below:
First 1
Second 2
Third 3
Fourth 4

No comments:

Post a Comment