Ahsan Ali Ahsan Ali - 10 months ago 40
CSS Question

Row span is not working as i expected

I want to achieve this:
enter image description here

and i did these with tag but only col span is working correctly

<tr>
<td><input type="checkbox"></td>
<td>hu043</td>
<td>7903</td>
<td>90df78</td>
</tr>
<tr>

<tr>

<td colspan="4" rowspan="4">&nbsp;</td>

</tr>

Answer Source

The purpose of rowspan is to span existing rows, like you are spanning existing columns in your example.

If you will add some rows below, you will see it.

<tr>
    <td colspan="4" rowspan="4">&nbsp;</td>
</tr>
<tr style='height:20px;'></tr>
<tr style='height:20px;'></tr>
<tr style='height:20px;'></tr>