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:

    CSS:

    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;

    HTML:



    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.

*May or may not contain any actual "CSS" or "Tricks".