Center Menu Bar

  • Author
    Posts
  • #1296983

    mpsaadmin
    Member

    Hey all, I really need help trying to center my menu bar…. Currently, it looks like this: http://www.ajpsblogging.wordpress.com –> I tried going into the CSS style and putting this in:

    #menu-primary {
    margin: 0 0 12px;
    width: 100%;
    }
    This moved up everything to one line which is great… But the menu still isn’t centered. I’ve tried text-align:center; as well, but to no avail…. Please help!

    The blog I need help with is ajpsblogging.wordpress.com.

    #1297068

    johnconners
    Member

    This should center the menu bar:

    #menu-primary .menu {
    float: none;
    width: 850px;
    margin-left: auto;
    margin-right: auto;
    }

    #1297069

    johnconners
    Member

    Let’s try that again, I don’t seem to be able to edit that comment:

    #menu-primary .menu {
    float: none;
    width: 850px;
    margin-left: auto;
    margin-right: auto;
    }

    #1297072

    mpsaadmin
    Member

    wow. thank you so much john!

    #1297074

    justpi
    Member

    @johnconners: Don’t use code tags. To display HTML or CSS in these forums, enclose it in backticks (see the note on allowed markup).

    #1297075

    johnconners
    Member

    Thanks @justpi, forgot where I was for a moment and remembered a millisecond after I hit ‘Submit’! :)

The topic ‘Center Menu Bar’ is closed to new replies.