If I remember correctly CSS3 has a spec for identifying different items in a list in various ways but seeing as noone really implements 3 yet you probably don't have a heuristically clean way of doing this.
Matt Ludbrook EMIC associates Engineering, Maintenance, and Inventory Consultancy +44 7940 854119 (Mobile) +44 23 92 610437 (Direct) www.emicassociates.co.uk -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Bienz Sent: 13 September 2006 12:15 To: vwf; css-d@lists.css-discuss.org Subject: Re: [css-d] changing backgrounds in list items >Thank you all for the various suggestions. >It seems that the straight-forward approach is the way to go: >simply add extra classes or id's for each of the elements. >I implemented it, and it works perfectly. >One question: why would I prefer 'id' over 'class' selectors? ID's should be used to uniquely identify elements in your page, classes are for groups of elements that share similar properties. If your list is only used once on the page then ID's would be the best thing to use. Use classes if your list is replicated within each page. Hope this helps. Alex. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- 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/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.3/446 - Release Date: 12/09/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.3/446 - Release Date: 12/09/2006 ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- 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/