center a div within a list code example Example: css ul to center ul { justify-content: center; display: flex; }