Kornel Lesinski schrieb: > > On Sun, 29 Apr 2007 22:49:47 +0100, Schalk Neethling > <schalk@alliedbridge.com> wrote: > >> In this regard why not have classes to identify each dt or li? >> >> <dl> >> <dt class="dt-one">lorem</dt> >> <dd class="dt-one">ipsum</dd> > > CSS3 already has selectors for this (:nth-of-type/:nth-child). :nth-of-type alone doesn't help to select the definitions that belong to a term. This would work: <dl> <dt>lorem</dt> <dd>ipsum</dd> <dt>dolor</dt> <dd>sit</dd> </dl> dt:first-of-type ~ dd { color: green; } dt:first-of-type ~ dt ~ dd { color: inherit; } Far from ideal. --DaoReceived on Monday, 30 April 2007 11:00:13 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:31:58 GMT