WordPress.org

Ready to get started?Download WordPress

Forums

Brunelleschi
[resolved] How to center the menu (14 posts)

  1. Agrigor
    Member
    Posted 8 months ago #

    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

  2. Evan Herman
    Member
    Posted 8 months ago #

    You will need to adjust the CSS .

    Can you provide the site url?

  3. Agrigor
    Member
    Posted 8 months ago #

    Yes I searched for it, but didn't find. :/

    Must I?^^

  4. Agrigor
    Member
    Posted 8 months ago #

    I send you an email by the contact module on your website ;)

  5. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 8 months ago #

    Please keep all support on WordPress.org.

  6. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    @Agrigor - these forums offer help here - please keep it here: http://codex.wordpress.org/Forum_Welcome#Helping_Out

  7. Agrigor
    Member
    Posted 8 months ago #

    It's just the URL, sry for it!

  8. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 8 months ago #

  9. Agrigor
    Member
    Posted 8 months ago #

    In the link posted above is the menu left-sided too.

    how can I center the whole line?

    or what did you mean?

  10. Evan Herman
    Member
    Posted 8 months ago #

    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!

  11. Agrigor
    Member
    Posted 8 months ago #

    Thanks a lot!!

    Not it works by setting the width to 70%.

    But is there a more generic way?
    Something like text-align: center;

    Thanks in advance again,
    Agrigor

  12. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 8 months ago #

    It may just be easier to do this:

    .menu ul {
     display: table;
     margin: 0 auto;
    }
  13. Evan Herman
    Member
    Posted 8 months ago #

    Much more efficient the way Andrew Nevins has explained.

    The menu always be centered, even when you add more menu items to the list.

  14. Agrigor
    Member
    Posted 8 months ago #

    Yes, that's it!

    Thank you all!

    Best wishes,
    Agrigor

Reply

You must log in to post.

About this Theme

About this Topic