This is a legacy document, and retained on the site in order to avoid link rot. The content is likely no longer (a) accurate, (b) representative of the views and philosophies of current site management, or (c) up to date.

CSS Table Example

Table Example

Based on a request in the stylesheets newsgroup, the following table example was written as an example of alternating table row colour.

Caption: Simulated computer paper
Header Row for whatever…
First row on a white background, with extra text to expand the row length.
Second row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background
Next row, with white background
Next row, with green background

Sue Sims