css main navigation bar horizontal center code example Example: menu always center css #nav ul { display: inline-block; list-style-type: none; }