how to get the last element in nth child in css code example Example: css last 3 childs #something a:nth-last-child(-n+3) { /*declarations*/ }