Get Rid of Margin Hacks With Flexbox

When working with column gutters you can get rid of nth-, first-, and last-child hacks by using flexbox’s space-between property:

  1. .list {
  2. display: flex;
  3. justify-content: space-between;
  4. }
  5. .list .person {
  6. flex-basis: 23%;
  7. }

Now column gutters always appear evenly-spaced.