On Sun, 3 Feb 2002, Jesus Ortega (a.k.a. Nitebirdz) wrote: > I have a quick question regarding the use of 'td' for tables in the CGI.pm > Perl module. I have a script that contains the following piece of code: > > print table({-border=>'0',-width=>'100%',-cellpading=>'0'}, > Tr({-border=>'0',-cellpadding=>'0',align=>'center',bgcolor=>'blue'}, > [ > td(['Home','OS','Comm','Hardware','Lang','Gfx/Multi','WinNT','Span/Port']), > td(['link','Junction','plp.com','Support','link','link','Insight','link']), > td(['link','link','link','link','link','link','link','link']), > ] > ) > ); > > > How would I change the background color on _one_ cell? In other words, how > would I make sure that _only_ the 'Home' cell in the table has a different > background color using correct CGI.pm syntax? > > Thanks. >
I didn't want to answer myself, considering it a waste of everybody's time, but then I realized that other people may hate to come across my question in a search and find out that there was no answer. So, here is the answer: td({bgcolor=>'red'},'Home') . td(['OS','Comm','Hardware','Lang','Gfx/Multi','WinNT','Span/Port']), -- Nitebirdz Mozilla--> http://www.mozilla.org/ Linux XFS--> http://oss.sgi.com/projects/xfs/ _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list