How to center top sticky menu

How to center top sticky menu was created by tceko1

Posted 6 years 4 months ago #46415
Hello,

Overall, the menu works good, we use maximenu params and maximenu mobile. The one thing we can't figure out. is when the menu is in desktop mode and the user scrolls down. When the menu sticks to the top, we want the bar to go all the way across, but we want the menu to be centered. Right now, the menu is flush left. how can we set the menu to be centered?

Thank you,

Tim
by tceko1
Attachments:

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic How to center top sticky menu

Posted 6 years 4 months ago #46416
Hi
in the module options >> effect options >> Menu position = top fixed
under this, you shall see an option to give the width of the top fixed menu, give it the width of your template
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by tceko1 on topic How to center top sticky menu

Posted 6 years 4 months ago #46428
Thank you for your quick reply!

That worked as far as making the menu center. We were hoping that the background of the menu bar would still go full width, but only the menu items would be centered. Is there any way to accomplish this?
by tceko1

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic How to center top sticky menu

Posted 6 years 4 months ago #46429
then you shall center your items in the normal state also :)

else you can use the css class "maximenufixed" that is applied to the menu when sticky, and use your own css to center the element in this state

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: tceko1

Please Log in or Create an account to join the conversation.

Time to create page: 0.725 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 734 guests and no members online