Kunena Menu
How to center top sticky menu
8 years 10 months ago #46415
by tceko1
How to center top sticky menu was created 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
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.
8 years 10 months ago #46416
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic How to center top sticky menu
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
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.
8 years 10 months ago #46428
by tceko1
Replied by tceko1 on topic How to center top sticky menu
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?
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.
8 years 10 months ago #46429
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic How to center top sticky menu
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
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




