center ul in div horizontally code example Example: css ul to center ul { justify-content: center; display: flex; }