Jump to content
Sign in to follow this  
lorikb

Center Main Nav

Recommended Posts

lorikb

Hello, I've been using firebug and trying to remove floats and add code and can't get the main menu to center. Any help would be appreciated, Lori

Share this post


Link to post
Share on other sites
lorikb
Hi, I am working locally atm so I can't post a link. I managed to get it centered but I changed a lot of code, so I will post the one that worked once I find out which line of CSS actually did it. Thanks for the quick response.

Share this post


Link to post
Share on other sites
lorikb
I changed the following lines to get the nav to center. Unfortunately you lose some of the control display:block gives you over the list items. [code] .main_nav ul { float: none; } .main_nav ul li { float: none; display: inline; } .main_nav ul li a { display: inline; } [/code]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×