in reply to Perl CGI, font color in a table
Untested:
The HTML shortcuts take an optional first argument, a hashref with the elements attributes.td ({-style=>"foreground:red"}, escapeHTML("This is a required field") +);
Or you could do:
And use a style sheet to colour spans of class required_field red. Or you could give the table cell a class (or id) attribute.td (span ({-class=>"required_field"}, escapeHTML("This is a required f +ield")));
|
---|
In Section
Seekers of Perl Wisdom