pufAmuf
pufAmuf

Reputation: 7805

Possible to Insert Table Row that doesn't have any columns?

is it possible to insert a table row that doesn't adhere to any columns? This is, say for example a message displayed or an advertisement placed somewhere inside the table. Thank you!

Upvotes: 1

Views: 949

Answers (2)

Ben Everard
Ben Everard

Reputation: 13804

Yes, you'll just have to do the following:

<tr>
    <td colspan="3">This is a message</td>
</tr>

Setting colspan to the number of columns your table has will make this row appear to span the entire table.

Upvotes: 1

Royi Namir
Royi Namir

Reputation: 148624

no you cant do this since it is not valid.

you cant add Tr without TD.

what you can do is insert with 1 td and use colSpan as much as you need.

Upvotes: 1

Related Questions