Hiya
It’s ok I worked it out:
···
require ‘cgi’
cgi = CGI::new(“html3”)
tb = {“width” => “100%”, “bgcolor” => “#ffffff”, “border” =>
“0”, “cellpadding” => “0”, “cellspacing” => “0”}
bdy = {“leftmargin” => “5”, “topmargin” => “0”, “rightmargin”
=> “0”, “bottommargin” => “0”, “bgproperties” => “fixed”,
“bgcolor” => “#ffffff”}
stdfnt = {“face” => “arial”, “color” => “black”, “size” =>
“2”}
largegreen = {“face” => “arial, verdana, clean”, “color” =>
“green”, “size” => “4”}
cgi.out {
CGI.pretty(
cgi.html{
cgi.head{cgi.title{“Kingsley’s Test Ruby CGI Page”}} +
cgi.body(bdy){
cgi.p{cgi.font(largegreen){“Performance Testing Documentation”}}
+
cgi.p{cgi.font(stdfnt){“Test page”}} +
cgi.table(tb){“test”}
}
}
)
}
Thanks
Kingsley
On 05-17-2003 09:45 pm, you wrote:
Hiya
I can\'t get the cgi font to work:
cgi = CGI::new(\“html3\”)
…
…
cgi.p{cgi.font{\“face=\‘arial, clean,
verdana\’\”}\“Performance Testing
Documentation\”}}I can get everything else to work but the font stuff?
Any help greatly appreciated
Kingsley