select the last element css code example Example: css last child li:last-child { background-color: lime; }