css style to last child code example Example: css last child li:last-child { background-color: lime; }