how to select not last child in css code example Example: not last child css p:not(:last-child) { margin-bottom: 20px }