how to center an unordered list code example Example: center unordered list html ul { display: table; margin: 0 auto; }