center unordered list in div code example Example: center unordered list html ul { display: table; margin: 0 auto; }