center div css flex

CSS
section {
  width: 200px;
  border: 1px solid #2d2d2d;
  display: flex;
  justify-content: center;
}
Source

Also in CSS: