Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Perl CGI, font color in a table

by JavaFan (Canon)
on Feb 28, 2012 at 07:14 UTC ( #956599=note: print w/ replies, xml ) Need Help??


in reply to Perl CGI, font color in a table

Untested:

td ({-style=>"foreground:red"}, escapeHTML("This is a required field") +);
The HTML shortcuts take an optional first argument, a hashref with the elements attributes.

Or you could do:

td (span ({-class=>"required_field"}, escapeHTML("This is a required f +ield")));
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.


Comment on Re: Perl CGI, font color in a table
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2015-07-03 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (49 votes), past polls