Re: HTML_Table Zebra tables

From: Date: Fri, 15 Apr 2005 19:09:01 +0000
Subject: Re: HTML_Table Zebra tables
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18770@lists.php.net to get a copy of this message
My preferred method... Don't even do it in PHP. I DO do it in php on certain occasions, like where I can't apply JS (ie. email) but for the most part, it's JS for me. <http://www.alistapart.com/articles/zebratables/> matte - matte@arubanetworks.com webmonkey » arubanetworks.com <http://www.arubanetworks.com> Get Firefox! <http://www.spreadfirefox.com/community/?q=affiliates&id=2885&t=85> | Reclaim Your Inbox! <http://www.mozilla.org/products/thunderbird> Justin Patrin wrote:
On 4/15/05, Ken <kenkam@gmail.com> wrote:
Hi all I have been looking at HTML_Table lately and I was thinking of ways to make zebra tables with them. I came across the function, ->setRowAttributes(). The manual says: "mixed $attributes - Associative array or string of table row attributes. This can also be an array of attributes, in which case the attributes will be repeated in a loop." Does it mean that if I supply it with an array of attributes, it is possible to make zebra tables... this bit in the manual really confused me :(.
First of all...TRY IT!! If you just try it you'd see if it works. There are examples in the manual. If by "zebra tables" you mean alternating row styles, then yes, it does do that.


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