Skip to content

colspan rowspan image.png

html
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td colspan="5">&nbsp;1234</td>
    </tr>
    <tr>
      <td>&nbsp;1</td>
      <td colspan="3">&nbsp;23</td>
      <td>&nbsp;4</td>
    </tr>
    <tr>
      <td>&nbsp;1</td>
      <td colspan="2">&nbsp;2</td>
      <td>&nbsp;3</td>
      <td>&nbsp;4</td>
    </tr>
    <tr>
      <td>&nbsp;1-1</td>
      <td rowspan="3">&nbsp;2-1</td>
      <td rowspan="3">&nbsp;2-2</td>
      <td rowspan="3">&nbsp;3</td>
      <td rowspan="3">&nbsp;4</td>
    </tr>
    <tr>
      <td>&nbsp;1-2</td>
    </tr>
    <tr>
      <td>&nbsp;1-3</td>
    </tr>
  </tbody>
</table>

Made with ❤️