in reply to Re: Re: Adding Style to a table.
in thread Adding Style to a table.

There are three errors in your code. First <-- is not the start of an HTML comment <!-- is. Next you need to pass a hash reference to -style. Finally it is -BORDER nor BOARDER.

use CGI ':all'; $query = new CGI; $THEAD = ' <!-- .thead { font-size: 10pt; color: #99FF99; } -->'; print $query->header(); print $query->start_html (-title=>'Roster of Players', -style=>{-code=>$THEAD}); print $query->h1({-align=>'CENTER'}, font({-color=>'9933FF'}), '1990 M +NLIGHTNING ROSTER'); print $query->table({-ALIGN=>'CENTER', -BORDER=>'0', -class=>'thead'}, Tr({-bgcolor=>'#9933FF', -valign=>'TOP'}, [ th({-width=>'150'}, 'COACHING').th({-width=>'150'}, 'STAFF'), ] ) );

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print