center navbar in div code example Example: menu always center css #nav ul { display: inline-block; list-style-type: none; }