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


:nth-last-child(2) is smart, but with all :nth-childs they’re not supported in IE, so using JQuery with :nth-last-child(2) would be the best overall solution, if you are concerned with cross browser support.

I’ll definitely remember this one though, nice one!