CSS selector for other than the first child and last child November 29, 2022 by Tarik Try: #navigation ul li:not(:first-child):not(:last-child) { ... }