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