That's quite a trick! Simple, I didn't think of that. Thanks for the suggestion!
--- Anneke Wiering <[EMAIL PROTECTED]> wrote: > > How to get alternating row colors in a table or a list? > > > > I know of solutions with Javascript but I am looking for something > that > > would be done with CSS only, I don't want to have to have a class > for > > the even rows (or odd). Now that we have CSS 2.1, with "counter" > and > > "content", does anyone have an idea? > > If you're really really really sure about the height of the rows > (mind the > font size!) and really really really sure that the data in the cells > fits > one line you can put a background on the table. > > http://www.xs4all.nl/~awiering/rest/table/index.htm > > It's not very user friendly in terms of resizability etc. I would not > recommend it for large tables. > > Anneke > > ______________________________________________________________________ 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/
