Re: HTML_Table

From: Date: Tue, 28 Sep 2004 08:56:13 +0000
Subject: Re: HTML_Table
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14662@lists.php.net to get a copy of this message
Michael Wallner wrote:
Hi Leegold, you wrote:
So I'd appreciate a snippet - Thanks.
http://pear.php.net/manual/en/package.html.html-table.html-table.setcolattributes.php
That should work: $table->setColAttributes(0, array('class' => 'nameCol'));
that gives: <td class="nameCol" bgcolor="#E0FFFF">Lee\'s Website</td> Maybe I do not understand...The standard html is to just say: nowrap there's no "class=" in standard html. I just want to say
    nowrap
in the correct place in the td statement for a particular column - that's all. If i can't add a word to the td code as i can when i usually write html - then I am confused here - what do i do??? Shouldn't the class render standard html when it all washes out??? How do i do this with this PEAR class?
Regards,


« previous php.pear.general (#14662) next »