extend width of secondary navigation

  • Unknown's avatar

    Hello,

    I need to increase the max width of the secondary navigation menu on the Prosperity theme. How do I do that? I’m trying to add 4 nav, but it goes to the second line. secondary nav is “about vadxx, why vadxx etc..”

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,
    You can try the following CSS (paste it in Customize > CSS):

    .secondary-navigation {
       max-width: 100%;
    
    }

    By default, it was set to 64%, so 100% should give you more space, if not you can increase this percentage.

  • Unknown's avatar

    Hello,

    Thanks for the reply but it didn’t work. Changed it to 200% and nothing happened. Any other suggestions?

  • Unknown's avatar

    Hi,
    It seems that above 3 items on your menu, the CSS conditioned to a specific format. Try adding this CSS to remove that format:
    `
    .secondary-navigation > div > ul > li:nth-of-type(3n+1) {
    clear: none;
    }
    .secondary-navigation > div > ul > li:nth-of-type(3n+1) {
    margin-left: 32px;
    padding-left: 32px;
    border: none;
    }

    I hope this time works, if not let me know ;)

  • Unknown's avatar

    Hi,
    It seems that above 3 items on your menu, the CSS conditioned to a specific format. Try adding this CSS to remove that format:

    .secondary-navigation > div > ul > li:nth-of-type(3n+1) {
        clear: none;
    }
    .secondary-navigation > div > ul > li:nth-of-type(3n+1) {
        margin-left: 32px;
        padding-left: 32px;
        border: none;
    }

    I hope this time works, if not let me know ;)

  • Unknown's avatar

    Great! It worked, now how do I add a divider line in between resources and contact us.

  • Unknown's avatar

    Great! It worked, now how do I add a vertical divider line in between resources and contact us. Thank you!

  • Unknown's avatar

    Sure, forgot that menu line…
    Please add this:

    .secondary-navigation > div > ul > li:nth-of-type(3n+1) {
    border-left: 1px solid rgba(0,0,0,0.1);
    }

  • The topic ‘extend width of secondary navigation’ is closed to new replies.