WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Navigation Bar Alignment (5 posts)

  1. William Speruzzi
    Member
    Posted 8 years ago #

    Not sure what the code would be to center all text in the navigation bar for my blog.

    Any help with this code?

    [this savage art...]

  2. bmg1227
    Member
    Posted 8 years ago #

    Add the text-align wording to your css so that it looks like this:

    #navwrap{
    display:block;
    margin:0 auto;
    width:700px;
    text-align: center;
    }

  3. William Speruzzi
    Member
    Posted 8 years ago #

    Tried that already and nothing centered.

    Hmmm????

  4. bmg1227
    Member
    Posted 8 years ago #

    Add the same then to this:

    #nav ul li a{
    color:#888;
    text-align: center;
    }

  5. William Speruzzi
    Member
    Posted 8 years ago #

    It actually worked after I corrected it with this:

    #nav ul{
    list-style-type:none;
    margin-center:-27px;
    }

    Thanks bmg1227

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.