Comments on: :nth-last-child https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Fri, 07 Jul 2017 21:09:05 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Leslie https://css-tricks.com/almanac/selectors/n/nth-last-child/#comment-1610102 Fri, 07 Jul 2017 21:09:05 +0000 http://css-tricks.com/?page_id=14232#comment-1610102 Is possible select before of last-child?

]]>
By: Abe https://css-tricks.com/almanac/selectors/n/nth-last-child/#comment-1599436 Thu, 04 Feb 2016 01:26:56 +0000 http://css-tricks.com/?page_id=14232#comment-1599436 In reply to R.Veerakumar.

I’m assuming you used the brackets { … } after the li:nth-last-child(2), if not then it should fully look like this …

#collmnuss li:nth-last-child(2) { … your styles here … }

or you might of misspelled the #id selector name (#columns).

]]>
By: R.Veerakumar https://css-tricks.com/almanac/selectors/n/nth-last-child/#comment-1596542 Mon, 24 Aug 2015 05:21:57 +0000 http://css-tricks.com/?page_id=14232#comment-1596542 it’s not working the code #collmnuss li:nth-last-child(2)
why?

]]>
By: Martin Hochel https://css-tricks.com/almanac/selectors/n/nth-last-child/#comment-1580404 Sat, 26 Apr 2014 16:41:43 +0000 http://css-tricks.com/?page_id=14232#comment-1580404 Hi Chris,
you have a typo in your pen example

instead of
.three:before {
content: ":nth-last-child(-n+2) :nth-last-child(-n+3)";
}

there should be

.three:before {
content: ":nth-last-child(-n+2) :nth-last-child(1)";
}

]]>