Excluding last-child
CssCss Problem Overview
ul li:last-child selects the last element of a list.
ul li:not(...) selects an element that is not something
What is the CSS selector for excluding the last child of an element? I tried ul li:not(last-child) but it didn't work.
Css Solutions
Solution 1 - Css
Did you try:
ul li:not(:last-child)