How to center the menu?
-
There is no option to center the menu.
The default location on the page comes out on the left. I’ve tried playing around with the padding but it doesn’t move the entire bar as a whole to center.
Also, how do I get rid of the extra space in the menu bar as I don’t have enough categories to fill up the entire page wide menu length. How do you make the menu bar shorter?
How do you center the menu on the top?Thanks in advance!
-
Hi Ontariopool,
Please could you send me a link to your site so I can take a look?
Regards
TomI’ve written some documentation on centering menu items here:
http://www.megamenu.co.uk/documentation/centering-menu-items/
I’ll add some on centering the whole menu shortly and update here.
Hello Tom, thanks for the attention to the matter. The link is www. ontariopoolservice. ca
I am aiming to make the menu to be in the center of the page at all times and be responsive to changes in sizes of browsers and screens. What code would result in that?
(setting this to resolved, user no longer using the plugin)
Hi abosurf,
For some reason I can’t see your reply here, but I have it in my inbox.
The thread was resolved as the original poster stopped using the plugin.
To center the menu, you’ll need to give it a width and apply a left and right margin, e.g:
#mega-menu-wrap-primary-2 { width: 90%; margin: 0 5% 0 5%; }
(the above CSS should go into your themes style.css file, or into the Custom CSS section of your menu theme)
Regards,
Tom.Hi Tom,
I do have the same problem/question like “ontariopool” I guess.
I took a look at your documentation but couldn
t find an answer to the question how to center the sub menu items in the mega menu panel. Do you know what I mean? It
s not about the toplevel navigation but the items listet in the mega menu.Could you add the solution to your documentation?
Thanks a lot!!!
- The topic ‘How to center the menu?’ is closed to new replies.