Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: cgi checkbox_group in table

by MrCromeDome (Deacon)
on Apr 08, 2003 at 15:55 UTC ( [id://248978]=note: print w/replies, xml ) Need Help??


in reply to cgi checkbox_group in table

CGI and Perl will let you easily label your checkboxes. See the following (untested) sample:
my @values; my %labels; foreach(1..10) { $values[$_] = $_; $labels{$_} = "Item $_"; } $colgroup = $cgi->checkbox_group( -name=>'embl_group', -values=>\@values, -labels=>\%labels, -linebreak=>'true' );
This will let you have your item names and checkboxes that correspond with them in the same cell of the table. This should take care of your alignment problem.

Hope this helps!
MrCromeDome

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://248978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found