How to center the menu
-
Hi there,
I’m using your theme and it’s very nice.
Now I got some problems with the menu since I had just only a few menu items left. How can I center these items?
I don’t find it anywhere and read almost all entries in your support forum… :/
Thanks in advance,
Agrigor
-
You will need to adjust the CSS .
Can you provide the site url?
Yes I searched for it, but didn’t find. :/
Must I?^^
I send you an email by the contact module on your website 😉
Please keep all support on WordPress.org.
@agrigor – these forums offer help here – please keep it here: http://codex.wordpress.org/Forum_Welcome#Helping_Out
It’s just the URL, sry for it!
In the link posted above is the menu left-sided too.
how can I center the whole line?
or what did you mean?
Add this to your themes CSS file
.menu ul { width: 27%; margin: 0 auto; }
Adjust the width based on how many menu items you have.
Hope this is of some help!
Thanks a lot!!
Not it works by setting the width to 70%.
But is there a more generic way?
Something liketext-align: center;
Thanks in advance again,
AgrigorIt may just be easier to do this:
.menu ul { display: table; margin: 0 auto; }
Much more efficient the way Andrew Nevins has explained.
The menu always be centered, even when you add more menu items to the list.
Yes, that’s it!
Thank you all!
Best wishes,
Agrigor
- The topic ‘How to center the menu’ is closed to new replies.