text align center in ul li code example Example: css ul to center ul { justify-content: center; display: flex; }