Center align nav bar stretches child menu items

Viewing 5 posts - 1 through 5 (of 5 total)
  • #16971
    jussufbenjussuf
    Participant

    Hi together,

    in order to center-align my footer menu, I added

    .nav ul {
    margin: auto;
    width: 745px;
    float: none;
    padding-top: 1em;
    }

    to my style.css. It worked perfectly.

    However, the child (and sub-child) menu items are stretched now. Please see this picture Minimatica for clarification.

    How can I get the child menu items back to their normal length whilst keeping the main menu center aligned?

    Thank you very much for any help on the issue.

    Josef

    #16982
    jussufbenjussuf
    Participant

    Nobody?

    #17023
    Daniel Tara
    Keymaster

    Try replacing the .nav ul selector with .nav > ul

    #17031
    jussufbenjussuf
    Participant

    Daniel, you are my hero!

    That did the job!

    Thank you!

    #17092
    Dion
    Participant

    I tried it but it didn’t work. Can you telle me what I do wrong.
    My site is: http://www.diondebakker.nl
    If you can tell me how I can align the second line to the right I will be very pleased.

    With compliments,
    Dion de Bakker

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

You must be logged in to reply to this topic.