Center a horizontal menu?

Center a horizontal menu? was created by arvendal

Posted 9 years 1 week ago #26947
Hi,

I've been searching this forum for a solution to center the horizontal Maximenu. Some answers were in French, which I don't understand well enough to be able to "decipher".

But there must be many questions and answers on how to center or justify the Maximenu horizontally instead of the default left position. I googled some general CSS solutions but I was not able to get them to work.

I feel kinda silly to ask for this probably obvious solution. But I can't spend any more time searching. I hope someone will take pity on me and direct me to a solution.

I use MaxiMenu Mod v 8.0.17 and Mobile plugin v 1.2.2.

Best regards

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

Replied by ced1870 on topic Center a horizontal menu?

Posted 9 years 1 week ago #26953
Hi
please give me your url and explain what you think with "justify" ? do you want the text to be centered, or all elements to have the same width, or at least to be arranged to that they take the whole menu width ?
CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by arvendal on topic Center a horizontal menu?

Posted 9 years 1 week ago #26971
Thanks for your quick reply.
For the moment, I only have a prototype on my PC in Xampp. But the result I want to achieve is this:



As default, the menu lines up to the left (above) but I would like to have all the menu items arranged from the center (below).

I hope this example may explain my question.

Best regards
Attachments:

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

Replied by ced1870 on topic Center a horizontal menu?

Posted 9 years 1 week ago #26972
ok then you just have to change the text-align:left by text-align:center in the theme file, just at the beginning on ul.maximenuck

Joomlack Webmaster and Developer

by ced1870

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

Replied by arvendal on topic Center a horizontal menu?

Posted 9 years 1 week ago #26981
OK!
But which line in file? I've tried maximenuck.php and maximenuhck.php in the themes/css3megamenu/css folder without success.

Best regards

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

Replied by ced1870 on topic Center a horizontal menu?

Posted 9 years 1 week ago #26983
it is in the maximenuck.php file
there should be no "maximenuhck.php" file in the v8 of maximenu

I would tell to give me your url but I'm now in holidays, if you don't find, please remind me after the 4th may :)

Joomlack Webmaster and Developer

by ced1870

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

Time to create page: 0.657 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 576 guests and no members online