Jump to content
stefanoferruggiara

Center Secondary Menu

Recommended Posts

stefanoferruggiara    5
stefanoferruggiara

Hi there,

Please someone could help me cause  I don't find by my self the exact css code to center the secondary menu with pagelines?
 

Thanks for fast reply;)


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
batman    389
batman

Hi Stefano

I´m not sure (I have not your URL live)

But you can try with

 

#secondnav ul { text-align: center; } 
#secondnav ul li { float: none !important; display: inline-block; }

:)

  • Like 1

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

Thanks Bat!;)


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

This work! ;) Thanks

The final css is this:

 

 

#secondnav ul {
text-align: center;
}
#secondnav ul li {
float: none !important;
display: inline-block;
}


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

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


  • Similar Content

    • johnsonmm
      By johnsonmm
      I been having some issue with getting my menu to center. It stays to the left.
       
      I've disabled the logo and just need the menu to center. I found some CSS from this forum and it still doesn't work. 
       
      Is there CSS to fix this issue?
       
      http://legacyfarmsretrievers.com/
       
      Thank you,
       
      -Nathan
       
       
    • MissT
      By MissT+
      Hi there,
       
      I'm using DMS 2.1.1 with a child theme. And WP 3.9.1. All plugins except DMS tools and Updater deactivated.
       
      The Secondary Menu isn't appearing when the site is viewed on mobiles - the normal main menu - which is has too many options for mobiles is still appearing.
       
      If my understanding is correct the menu I've selected for the secondary menu in the site navigation set up should appear on mobiles.
       
      I can provide the URL via email.
       
      Many thanks in advance.
×