PDA

View Full Version : Tables,odd & even background colours


spazzer
10-01-2009, 07:06 PM
Hi
I have a table and would like to make odd rows a different colour to even numbered rows, could someone advise on best way to do this, I could create a style could someone possibly post some code to help ?

Cheers,
Nick C

domedia
10-01-2009, 08:31 PM
Give every odd row a separate classname and style it with CSS:
tr.odd {background: green;}