Re: HTML_Table
| From: | Justin Patrin | Date: | Mon, 27 Sep 2004 20:11:10 +0000 |
| Subject: | Re: HTML_Table | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14658@lists.php.net to get a copy of this message | ||
On Mon, 27 Sep 2004 20:01:40 +0000, leegold2@verizon.net
<leegold2@verizon.net> wrote:
> I have a table with three columns. I want to make the first col. "nowrap". So I have
> this working, but I can't figure out to to make one particular col. for every row nowrap.
> Thanks,
>
> require_once "HTML/Table.php";
>
> $table = new HTML_Table("table border=0 cellpadding=10 cellspacing=5");
> $table -> setAutoGrow(true);
> $table -> setAutoFill("n/a");
>
> $table -> setHeaderContents(0, 0, "Title");
> $table -> setHeaderContents(0, 1, "URL");
> $table -> setHeaderContents(0, 2, "Description");
> $hrAttrs = array("bgcolor" => "#D9D9F3");
> $table -> setRowAttributes(0, $hrAttrs, true);
>
RTFM
http://pear.php.net/manual/en/package.html.html-table.html-table.setcolattributes.php
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--