in reply to Mid-row colspans with CGI.pm
Just remember... if you don't have more than one element, don't use an arrayref below a shortcut. It merely gets confusing. {grin}use CGI::Pretty qw(:standard); print table({border=>1, cellspacing=>2, cellpadding=>2}, Tr({align=>'left', valign=>'center'}, [ td([qw(one 1 I)]), td([qw(one 1 I)]), td('two').td({colspan=>2}, 2), td({colspan=>2}, 'three').td('III'), td({colspan=>3}, 'four'), ]));
And don't colspan for more columns than you have...
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: (2) Mid-row colspans with CGI.pm ($q-)
by ybiC (Prior) on Oct 03, 2000 at 16:48 UTC | |
by tye (Sage) on Oct 03, 2000 at 18:03 UTC | |
by agoth (Chaplain) on Oct 03, 2000 at 18:03 UTC | |
by merlyn (Sage) on Oct 03, 2000 at 17:57 UTC |