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