Ferie...
Med venlig hilsen/best wishes
Peter Larsen
Center for Medie og Kommunikation
Roskilde Tekniske Skole
***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsub
I will be out of the office starting 02/22/2010 and will not return until
02/25/2010.
I am out of office from February 22nd till 25th.
I will be checking my e-mail and available via phone if necessary:
513-307-1224.
***
List Guide
> Just wondering, is it possible to use the nth-child in CSS2 to target
> the last 2 items of an unordered list?
>
> I know you can do nth-last-child, but I wanted to target the last TWO
> list items. Is this possible?
I believe this is CSS*3*, so support is not that great
--
Regards,
Thierry
Paul,
A quick look at [1] suggests that you might be able to do
li:nth-last-child(-n+2)
But I haven't tried it...
(I didn't know you could target the last element so I was intrigued by
your question and that lead me to this. Don't assume that all W3C team
folk know what each other is up to!)
Hi all
Just wondering, is it possible to use the nth-child in CSS2 to target the
last 2 items of an unordered list?
I know you can do nth-last-child, but I wanted to target the last TWO list
items. Is this possible?
Thanks for any help
**