October 10, 200917 yr Hey guys just about finished my first website for a client but I have no idea how to centre my navigaiton bar to make the page look better. I have tried every different styling I can think of but cant get it to budge from the left of the screen. Any help would ne greatly appreciated thank you for reading http://www.illusionoffear.co.uk
October 10, 200917 yr Your #nav has fluid width: 100% and min-width so try to use the example in item 4 here:- http://www.wickham43.net/dropdownmenus.php which centers a menu in a fluid width. You need a container with no width (to be flexible) and with overflow: hidden; then your #nav needs float: left; position: relative; left: 50%; then the #nav ul needs position: relative; left: -50%; margin: 0; padding: 0;
Create an account or sign in to comment