Forum Moderators: open

Message Too Old, No Replies

Need to merge the columns of a cell dynamically

table cells merge

         

rsennat

7:46 pm on Dec 14, 2005 (gmt 0)



Hi All,

I need to merge the columns of a table during runtime in HTML Template.

I have a bool variable set, whenever the cells needs to be merged.
So, chking for that var if its set, need to merge the cells else need to have the cells as defined earlier.

How this can be done in HTML::Template?

Or how this can be done in HTML would be better for me to transform that to HTML::Template.

Thanks
Senthil

tedster

8:21 pm on Dec 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you need to merge a specific table cell with the cell below it in the same column, you can use the rowspan attribute in the <td> element
<td rowspan="2"></td>

And conversely, if you need to merge a specific table cell with the cell in the column next to it, you can use the colspan attribute in the <td> element

<td colspan="2"></td>

Is that what you need, or have I misunderstood?

rsennat

8:24 pm on Dec 14, 2005 (gmt 0)



hey tedster,

thats cool. thx, that solved my problem.

rsennat