On 12/13/06, Ian Young <[EMAIL PROTECTED]> wrote:
> I am being completely stupid here. Have tried all the suggestions and get no
> alternating colors.
> tr .even{background:#eee}
> tr.odd{background:#F9FBF9}

Your sytnax is wrong for the shortcut rule.  It should be {background:
#eee none;}

You should style the tds in the styled row, not the row itself.
Descendant selectors allow you to do this easily.

e.g.

tr.even td {background: #eee none;}

You might need to apply a {border-collapse: collapse;} rule to the
table for this to look right.

Also you don't need to specify two classes, one will do.  Just make
the default style of the table the one color and the td's in the
classed tr rows the other one.

-- 
Ed Seedhouse
______________________________________________________________________
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/

Reply via email to