W3C home > Mailing lists > Public > www-forms@w3.org > January 2007

Styling every other repeat item differently

From: Klotz, Leigh <Leigh.Klotz@xerox.com>
Date: Wed, 17 Jan 2007 16:30:22 -0800
Message-ID: <E254B0A7E0268949ABFE5EA97B7D0CF402ABEE25@usa7061ms01.na.xerox.net>
To: "www-forms" <www-forms@w3.org>
A common task when presenting repeated data is to style alternating
lines differently.

Does anybody have a good way to do this?  It would seem that CSS
counters ought to be able to do it, but even so they don't seem to be
popular implementation items.

I've developed a way that works in XForms, but it relies on duplicated
groups and an attribute specifying the item number, because I am unable
to figure out how to find the current item number in a repeat.

Can anybody do better than the attached file?

Leigh.


Received on Thursday, 18 January 2007 00:30:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:08 GMT