hi guys,
ive recently stumbled on the zebra table's. i can make and use them in html, but i cant seem to get my head around how to do it in php.
i found this article on alistapart.com http://www.alistapart.com/discuss/zebratables/6
does anyone use them or know anything about how to write them in php?
thanx very much
Zebra Tables
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
there's an example of a php version on that page..
the basics are: you have x number of classes for the row coloration. You use the modulo operator (%) to determine which row coloration you should use with the current row of output. It's quite simple actually.
I'm absolutely sure we've talked about them before, I just can't remember what text there was for me to search for it
edit: here's one
viewtopic.php?t=13897&highlight=color+c ... w+alter%2A
the basics are: you have x number of classes for the row coloration. You use the modulo operator (%) to determine which row coloration you should use with the current row of output. It's quite simple actually.
I'm absolutely sure we've talked about them before, I just can't remember what text there was for me to search for it
edit: here's one
viewtopic.php?t=13897&highlight=color+c ... w+alter%2A
Last edited by feyd on Mon Sep 27, 2004 8:25 pm, edited 1 time in total.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US