formatting tables generated by checkbox_group()

[email protected] (neil)
Newsgroups perl.beginners.cgi
Organization http://groups.google.com
Message-ID <67cb8ea9-63e3-427d-b85f-b8f9a43200f4@e10g2000prf.googlegroups.com>
Hi,

I was wondering if its possible to get the class="" field passed to
the tables generated by checkbox_group()?

For example, I have the following code

      $q -> checkbox_group(-name=>'GroupingOptions', -values=> [ '--
bySex', '--byFamily' ], -labels=> \%GroupingOptions, -columns=>2),

which generates the following table with checkboxes



<table><tr><td><label><input type="checkbox" name="OutputOptions"
value="--pairs" />Summarise pairs of relationships (--pairs)</label></
td><td><label><input type="checkbox" name="OutputOptions" value="--
markerTables" />Report marker statistics (heterozygosity, genotyping
rates, etc.) (--markerTables)</label></td></tr><tr><td><label><input
type="checkbox" name="OutputOptions" value="--rewritePedigree" /
>Rewrite Pedigree File (--rewritePedigree)</label></td></tr></table>

but I've defined two different styles for tables in my css file

TABLE  {font-family: Helevitica, Arial, sans-serif; font-size: 12px;
font-weight: n
ormal;}
TABLE.blank  {font-family: Helevitica, Arial, sans-serif; font-size:
10px; font-weight: n
ormal;}

and would like the table field to include the class="blank" so that
the font size is set.  Works fine in html, but can I pass the
class="blank"?

I tried

      $q -> checkbox_group({-class='blank'}, -name=>'GroupingOptions',
-values=> [ '--bySex', '--byFamily' ], -labels=> \%GroupingOptions, -
columns=>2),

but the table and checkboxes weren't drawn.  Should I redefine my css
styles so that the blank table is actually how I want default tables
to be (i.e. change the font-size in the two lines given), or is it
possible to get the class="" set vic CGI.pm?

Cheers

Neil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.