tags:

views:

189

answers:

1

Hi, 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.

+3  A: 

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.

helios
Thanks for that.
Cesar Lopez
You should also use 'TH' elements, for headers within the TBODY.
graphicdivine