WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Center items in top Nav bar (5 posts)

  1. Akaizhar
    Member
    Posted 9 months ago #

    http://zodiacempires.com/ is my site. Looking to center the entries in the nav bar, so its in the middle of the screen.

    Any css help would be greatly appreciated.

  2. martcol
    Member
    Posted 9 months ago #

    You could try this:

    #main .menu {
        margin: 0 auto;
        width: 74%;
    }

    It's not brilliant when you reduce the viewport but I think it does what you ask.

  3. Akaizhar
    Member
    Posted 9 months ago #

    Ehhh... not really. It messed up how much of the bar the items were able to use. Essentially I just want them to be centered, but able to auto-align as more things are added.

  4. Akaizhar
    Member
    Posted 9 months ago #

    I fixed this. There was a float:left hidden in one of the menu lines that once turned off, fixed my problem.

  5. martcol
    Member
    Posted 9 months ago #

    Glad you got it sorted.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.