
June 18th, 2002, 05:58 PM
|
|
Junior Member
|
|
Join Date: Apr 2001
Posts: 10
Time spent in forums: 1 m 47 sec
Reputation Power: 0
|
|
Formatting Output in Table using Printf and CSS
As you may guess, I am new to PHP and am experiencing some frustration with attempting to format data in a table. Here is my statement for the first row of the table, which contains the statement :
printf ('<td width=\"192\" height=\"14\" valign=\"top\" class=\"Header1\"><a href="%s">%s</a></td>', "$PHP_SELF?sort=dept_sort", "Department");
Problem is, the reference to the Class does not work. I get no errors, but the font does not get formatted as Header1. I have tried various iterations of this using <Span> outside of the <Td> tag to set the font, etc., but nothing seems to work. The font does not get set to the style in Header1. I have spent hours on this - can someone help me? Is there a better way to do this?
Thanks!
Marcie
|