CSS justify-content Property CODE
Align the flex items at the center of the container:
div {
  display: flex;
  justify-content: center;
}
Align the flex items at the beginning of the container (this is default):
div {
  display: flex;
  justify-content: flex-start;
}
Align the flex items at the end of the container:
div {
  display: flex;
  justify-content: flex-end;
}
Display the flex items with space between the lines:
div {
  display: flex;
  justify-content: space-between;
}
Display the flex items with space before, between, and after the lines:
div {
  display: flex;
  justify-content: space-around;
}
by გიორგი ბაკაშვილი
4 years ago
CSS
CSS Properties
1
Pro tip: use ```triple backticks around text``` to write in code fences