Archive for March, 2006

Alternating table row colours in PHP.

March 9th, 2006

Recently I have been tinkering with Ruby on Rails and I came across a rather nice method of alternating row colours using only two lines of code and a couple of CSS rules. I have been using this method in my PHP ever since and never looked back. This is a neat trick to alternate row colors on a table using PHP.

» Read more: Alternating table row colours in PHP.