Знания/CSS/nth-last-child-nth-last-of-typeКак работают `:nth-last-child()` и `:nth-last-of-type()`?СобеседованиеСелекторы Аналогичны :nth-child() и :nth-of-type(), но отсчёт идёт с конца :nth-last-child(1) = :last-child Полезно для: li:nth-last-child(-n+3) — последние 3 элемента