Rowspan does not work with thead and tbody

I am trying to use rowspan in a table with thead and tbody ex.

<table>
<thead>
    <tr>
       <td rowspan="2">test</td>
       <td>Initials</td>
    </tr>
</thead>
    <tbody>
    <tr>
       <td>&#160;</td>
    </tr>
    </tbody>

But that does not allow me to do this.

Is there an arround way? Or do I need to remove thead and tbody in order to be able to use rowspan?

Thanks in advance.

+3
source share
1 answer

td will cover if there where another tr is inside the same thead.

This is what Pekka says: rowspan cannot cross borders or body boundaries. So try moving them together.

+8
source

Source: https://habr.com/ru/post/1728601/


All Articles