Forum Moderators: not2easy

Message Too Old, No Replies

nth-last-child hack for IE

         

upworks

6:49 pm on Jan 20, 2011 (gmt 0)

10+ Year Member



Is there a solid nth-last-child hack/workaround for Internet Explorer ?

Fotiman

7:02 pm on Jan 20, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If jQuery is an option for you, there is a jQuery plugin that claims to provide this functionality:
[plugins.jquery.com...]

However, I've not used it myself.

upworks

7:12 pm on Jan 20, 2011 (gmt 0)

10+ Year Member



Thanks Fotiman, I have that as an option but the element in question is main navigation and I'd rather not wait for the DOM. Im going to have to add a class to the elements in question.

Fotiman

9:29 pm on Jan 20, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ah. Yeah, I don't know of a workaround for IE, though if you find one please be sure to post it here. :)

HallMarc

4:02 pm on Feb 17, 2011 (gmt 0)

10+ Year Member



Take a look at this fix for IE 8 and below:
[stackoverflow.com ]

[edited by: alt131 at 6:54 am (utc) on May 19, 2011]
[edit reason] Thread Tidy [/edit]