Jump to content
Sign in to follow this  
erikareinhart

Re-Centering Main Menu/Nav

Recommended Posts

erikareinhart

I had (the words in) my main menu perfectly centered, however, now that I enabled the multiple menus function under "menus" it is ucentered! How do I recenter it?

Share this post


Link to post
Share on other sites
catrina

Please add the following code to Custom Code > Custom CSS:

#nav_row div.nav {margin-left: 40px; position: relative;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
erikareinhart

Thanks, but for some reason that did not work.

Share this post


Link to post
Share on other sites
catrina

Whoops, I forgot to add one word. Please add this:

#nav_row div.main_nav {margin-left: 40px; position: relative;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
erikareinhart

I tried adding it to the custom css and it didn't work. So I tried it in my actual css (I know I probably shouldn't be editing that but I have been...) and it still did not work. Can you look at my css and let me know if anything is wrong? Again, it was perfectly centered until I used the menus option in pagelines to add a secondary menu. (The reason I added a second menu is because I want to create pages that DON'T show up on the main navbar. If there is another way to ensure that pages don't show up on the main navbar then I will do that instead of messing with this. Let me know!) /* @ Main Nav */ .main_nav { line-height: 1.7em; text-align: left; margin-top: 0px; z-index:28; /* Fancybox Uses 30 */ position:relative; } #menu-nav{margin-left:4.5%} #nav_row div.main_nav {margin-left: 40px; position: relative;} .main_nav .content-pad{ padding-top: 6px; } .main_nav ul{ list-style: none; display: block; margin: 0px 0px 0px 0px; padding: 0px; float: left; } .main_nav li{position:relative;} .main_nav ul li{ margin: 0px 0px 0px 0px; padding: 0px; float: left; text-align: right; } .main_nav li a{ padding: 10px 15px 10px; text-decoration: none; display: block; border: 1px solid transparent ; border-bottom:none; } #primary-nav {background: #fcfcfc;} #primary-nav li a {background: #fcfcfc;} #primary-nav #nav_row {border-bottom: 1px solid #151B8D;} #primary-nav .main-nav li a:hover{ background: #fff; color:#3b0119; font-weight:lighter; } .main-nav li a{ font-size: .95em; }

Share this post


Link to post
Share on other sites
kastelic

Try:

#primary-nav ul.main-nav { margin-left: 36px !important } 

Share this post


Link to post
Share on other sites
erikareinhart

That worked!!!!! Thank you.

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  

×