Like it says on the box ... how can I programatically get alternate background colours for either the rows or columns to make the table easier to read?
I'm using PHP to query a DB and produce results that could be as wide as 40 fields, and with upto 200 results.
Of course there could be a lot fewer results depending on the query, so I figure there must be a way using either php or the css that can say all odd numbered columns = grey, all even numbered columns = silver .... or something similar?
I'm using PHP to query a DB and produce results that could be as wide as 40 fields, and with upto 200 results.
Of course there could be a lot fewer results depending on the query, so I figure there must be a way using either php or the css that can say all odd numbered columns = grey, all even numbered columns = silver .... or something similar?