I am being completely stupid here. Have tried all the suggestions and get no alternating colors. tr .even{background:#eee} tr.odd{background:#F9FBF9}
echo '<tr class="even">'; echo '<tr class="odd">'; The above just gives the "odd" color. HELP! Ian **************************************************IMPORTANT***************** *********************************************************** This e-mail contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of, distribution, copying or use of this e-mail or the information in it is strictly prohibited and may be unlawful. If you have received this in error please inform us at the above address then delete the e-mail and destroy any copies of it. Thank you. -----Original Message----- From: Andy Pemberton [mailto:[EMAIL PROTECTED] Sent: 13 December 2006 00:56 To: Matthew Barnicle Cc: Ian Young; [EMAIL PROTECTED] Css-Discuss. Org Subject: Re: [css-d] alternating coloured rows in dynamic website Generally, I like to add a style rule for regular TRs and then a class for either TR.odd or TR.even (whichever you'd like). tr{ background-color: #eee; } tr.odd{ background-color: #ccc; } This way, you only need to print out the 'class="odd"' on the odd rows, which makes your pages smaller and perhaps less complicated. Andy -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.18/584 - Release Date: 12/12/2006 23:17 ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/