You’ll have to do a bit more than that in order for the nav items/links to center. Since you can’t really center items that float, you’ll have to change them to either display: inline-block or something.
If you can post a link we can see exactly what needs to be done.