How to center top sticky menu

More
8 years 10 months ago #46415 by tceko1
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

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

More
8 years 10 months ago #46416 by ced1870
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

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

More
8 years 10 months ago #46428 by tceko1
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?

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

More
8 years 10 months ago #46429 by ced1870
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
The following user(s) said Thank You: tceko1

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

Time to create page: 0.191 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 4339 guests and no members online