WordPress.org

Ready to get started?Download WordPress

Forums

Centering nav-links (8 posts)

  1. makta112
    Member
    Posted 1 year ago #

    Hello

    I have a problem with my site's nav-links.

    As you can see, they are placed on the left side, but I want them to appear in the center.

    I have been trying to solve it for the past 3 hours, and I am really, really tired of it!

    Please help?

    Thanks!

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Didn't you already resolve this a week ago?
    http://wordpress.org/support/topic/center-nav-area?replies=3

  3. makta112
    Member
    Posted 1 year ago #

    No. Last week it was the access area, now it's navigation links.

    I've tried the same thing now but it won't work...

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Looks like if you change the width of #access ul to 80% it works more or less - absolute positioning can be problematic so definitely test it out.

  5. makta112
    Member
    Posted 1 year ago #

    Hi, thanks. This is what happens when I do that: http://share.xboxlife.dk/file/nwnjyje3odmymziynwflmjvkmjqwzjkwmgyynzbhmzu.jpg

    Is it possible to keep the background where it is?

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I was about to give up on it - or suggest that you put a background image all the way across there, but tried one last thing and it seems to work:

    li#menu-item-4960 {
       margin-left: 150px !important;
    }

    Of course, if you change the menu item order, you'll need to change that selector to whichever item is left-side most.

  7. makta112
    Member
    Posted 1 year ago #

    Thank you for your time, but I don't think I should use it because it will look different in different resolution.

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You mean that it won't resize very well? Yeah, that's perhaps true, but then maybe try putting a background image all the way across behind the menu bar - that is essentially identical in color and shape. Then when the menu is moved over using the first thing I suggested, it will still look black behind it.

Topic Closed

This topic has been closed to new replies.

About this Topic