The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Tricky :nth-child question Re: [Solved] Tricky :nth-child question


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:


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 :)