Menu spacing

I need to decrease the spacing between menu items.  I saw the code you gave to others to do this
#Top_bar .menu-item. menu-item-type-post_type .menu-item-object-page > li > a span:not(.description) { padding: 0 15px !important; }
but it has no effect on my menu even going into negative padding such as -25px. (I am using the Header Builder.) 

http://gator4047.temp.domains/~theatrec   (for old website and I am installing a new theme!)
Thanks,
Janell

Comments

  • Hello,
    We suggest, not to use the CSS code to decrease the spacing between menu items, it could issue the responsive view of the website.
    We provide this code in really problematic situations.

    The best way to decrease them, will be by changing the "Grid Width" option to smaller value.
    Theme Options > Global > General
    Thanks
  • Hi Pablo,
    Thank you for  responding so quickly.  I tried the Grid Width first, and decreasing it put the menu items to 2 lines, what I don't want! So increasing it to 1300 put all the menu items on one line, but that makes the webpage too wide and for smaller screens, it still puts those menu items to 2 lines.  If I can just reduce the space between the menu items, that should fix a big part of the problem. Why doesn't the CSS code work?

    Thanks so much for your help.
    Cheers,
    Janell
  • Every item must have some space between them, reducing it will make the menu looks bugged and misaligned.
    Changing it with CSS could make a lot of responsive troubles which we want to avoid, because fixing it require to remove the css or much more css tweaks.

    The menu items break to the second line while your grid width is smaller, because it does not have place to fit and it pushing them down, to prevent letters overlap.
    What you can do to fix that, is to create the submenu with some menu items inside, or by changing the font size of the menu items in Theme Options > Fonts > Size & Style - there you will find the "main menu" font size.
    Thanks

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.