loris has asked for the wisdom of the Perl Monks concerning the following question:
Dear Row-spanning Monks,
I know I should probably be using something like HTLM::Template, but I am not. I am trying to create a table with spanned rows:
my @headings = ('Foo','Bar'); my @rows = th(\@headings); my @row1 = (td({-rowspan=>'2'},'foo1')); push(@row1,td('bar1')); push(@rows,@row1); my @row2 = (td(['','bar2'])); push(@rows,@row2); my @row3 = (td({-rowspan=>'2'},'foo2')); push(@row3,td('bar3')); push(@rows,@row3); my @row4 = (td(['','bar4'])); push(@rows,@row4); print start_html('foobar'), table({-border=>'1'},Tr(\@rows)), end_html;
However, bar1 and bar3 end up in their own rows, instead of the rows with foo1 and foo2, respectively.
Could anyone let me know what is going on? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using rowspan with CGI.pm
by merlyn (Sage) on Jun 24, 2005 at 14:16 UTC | |
by loris (Hermit) on Jun 24, 2005 at 14:26 UTC | |
|
Re: Using rowspan with CGI.pm
by tlm (Prior) on Jun 24, 2005 at 14:30 UTC | |
|
Re: Using rowspan with CGI.pm
by donarb (Beadle) on Jun 26, 2005 at 18:28 UTC | |
by loris (Hermit) on Jun 27, 2005 at 07:12 UTC |