Treehouse: Grow your CSS skills. Land your dream job.

Horizontal Navigation CENTER

  • # November 4, 2010 at 2:51 pm

    I didn’t want it to start a new discussion but i’ve been looking for this topic and didn’t find anything similar to my problem, so here it is…

    i want to make a navigation menu horizontally centered but just cant make it work…
    this is what i have:


    ul#nav li a {
    display: block;
    width: 120px;
    float: right;
    margin-top: 207px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    ul#nav li a:hover, ul#nav li a:active {
    color: gray;


    any help? pleaseeeee!!!

    # November 4, 2010 at 3:18 pm

    have you tried setting the ul to width: 720px and margin: 0 auto; ?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.