Zebra Tables

Written by James Robertson, published March 7, 2004

Categorised under: Web development

David F. Miller has written an article on how to easily create zebra tables (tables where the rows have alternating colours) using CSS. To quote:

Ever since CSS hit the big time, the table has become increasingly rare. Semantic markup and CSS have replaced tables as layout tools. Tables are now relegated to their original role: displaying data stored in records (rows) and fields (columns).

However, their new status doesn’t mean that they still can’t be the targets of a designer’s styles and a developer