Excluding last-child

Solution 1:

Did you try:

ul li:not(:last-child)