Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rowspan do 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 it does not allow me to do it.

Is there a way arround? Or do I have to remove the thead and tbody to be able to use rowspan?

Thanks in advance.

like image 622
Amra Avatar asked Dec 30 '22 05:12

Amra


1 Answers

The td would span if there where another tr inside the same thead.

It is what Pekka says: rowspan cannot cross thead or tbody boundaries. So try to move them together.

like image 193
helios Avatar answered Feb 05 '23 05:02

helios