Home › Forums › CSS › [Solved] Tricky :nth-child question › Re: [Solved] Tricky :nth-child question
November 18, 2010 at 10:44 am
#74767
rzea
Member
Mr. yoboubdir, that was EXACTLY the kind of answer I wanted to read :).
So there IS a way in CSS to select an element in a list starting from the last element:
:nth-last-child(x)
Now, regardless that :nth-last-child(x) is not supported by IEx, well, too bad for them users as far as styling goes, as long as the content is accessible, readable and indexable, I’d prefer this method over JS.
Nonetheless, the JS examples are very helpful too.
Dang, I’m glad I asked.
Thanks guys!
PS. There should be a way to give reputation points, chosen answer, etc. in these forums :)