CSS Tips

This on r/programming today: CSS Tips. There are a lot of good tricks in there, this one was my fav:

.center {
  display: flex;
  align-items: center;
  justify-content: center;       
}

…it centres content vertically and horizontally.