css li last child not workiung code example Example: not last child css p:not(:last-child) { margin-bottom: 20px }