Jump to content


This topic is now archived and is closed to further replies.


Pear HTML_Table

Recommended Posts

OK, I know this is a silly question, but I'm a newb and can't find out how to change the font color for the headers when I am making a table with Pear HTML_TABLE. Obviously "FONT COLOR"=>"WHITE" does not work, I tried a bunch of different combos and searched for anything that looked like it may work.

This is what I have:

$header1 = array("Hits", "Name", "First", "Last");
$attributes = array("bgcolor"=>"#376589", "FONT COLOR"=>"WHITE");
$table->addRow($header1, $attributes, "TH");

Any help is appreciated.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.