Re: Zebra Striped Table Example
| From: | Ashley Sheridan | Date: | Wed, 03 Jun 2009 18:30:16 +0000 |
| Subject: | Re: Zebra Striped Table Example | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293556@lists.php.net to get a copy of this message | ||
On Mon, 2009-06-01 at 08:10 -0700, Raymond Irving wrote:
> Hello,
>
> There are many different ways and techniques that we can use to add alternate colors to table
> rows. Here's another solution that's very simple and straight forward. For example:
>
> $page['table tr:even']->css('background:#eee');
>
> Check out the full example code at
> http://raxanpdi.com/zebra-striped-table.html
>
>
> Best regards,
> __
> Raymond Irving
> Quickly build and maintain PHP Ajax applications
> Raxan PDI - http://raxanpdi.com
>
>
Doesn't work in the majority of browsers out there at the moment. Always
remember, just because you have the latest release of a browser, a lot
of people who just surf the web don't even know the difference and how
to upgrade. For striped tables, you're still better off using
server-side code to apply a class to every other row of the table. Pure
CSS solutions are not ready
Ash
www.ashleysheridan.co.uk