I have a table that is dynamically generated by PHP. I am hoping that I can use CSS to apply a background color based on where the table row is odd/even, i.e. the backgroun
You can do something like this:
$counter = 0; while(............){ $counter++; $bgcolor = ($counter % 2 === 0) ? 'red' : 'blue'; }
Now you can use bgcolor="" for your TDs :)
bgcolor=""
TDs
Note that above will work in all browsers including IE6.