flex items close as possible in center code example Example: css flex center display: flex; align-items: center; justify-content: center;