hide border from previous to last child element css code example Example: remove border from last child css .menu li:last-child { border: none; }