Articles by

Geoff Graham

Read, write, coffee, web, repeat.

Direct link to the article margin-trim

margin-trim

The margin-trim property in CSS removes the additional margin along the edge of a container when the last child element in the container has a margin that bumps right up alongside it.

.element {
  margin-trim: block-end;
}