Select all elements except last child

PHOTO EMBED

Sun Jun 06 2021 15:36:50 GMT+0000 (UTC)

Saved by @hisam #css

.item:not(:last-child) {
  margin-left: 2rem;
}
content_copyCOPY

Apply the margin to all elements except the last child