Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1361879

    Hello!

    Why dosn’t work this code? The logo is center, but the menu buttons on logo.
    Header settings is: logo left, menu, right,
    Header Style: Minimal with drop shadow (no borders, indicators or transparency)
    i have 4 menu buttons.

    Thanks for your help!
    Zsolt
    /*————————/
    / CSS – Logo center split menu
    /*————————/

    @media only screen and (min-width: 780px) {
    /*In the below code nth-child(x) the value of x should be half the number of total menu items*/
    #top #header .av-main-nav li:nth-child(3) {
    / Adjust the width of the logo */
    margin-right:150px;
    }

    #header .main_menu {
    /*background: gold;*/
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    }

    .av-main-nav-wrap {
    left: 50%;
    transform: translateX(-50%);
    }

    #header .logo {
    left: 50%;
    transform: translateX(-50%);
    z-index:999;
    }

    #header .logo img {
    top: 50%;
    transform: translateY(-50%);
    max-width: 100px;
    }
    }

    #1361888

    Hey Zsolt,

    Thank you for the inquiry.

    There is a minor syntax error in the comment inside the following css rule.

    #top #header .av-main-nav li:nth-child(3) {
    / Adjust the width of the logo */
    margin-right:150px;
    }
    

    There should be an asterisk after the first forward slash.

    /* Adjust the width of the logo */
    

    Best regards,
    Ismael

    #1361899

    Hey Ismael,
    Thank you so much, it’s working!.

    One more question.
    Any ideas how can I distribute the menu buttons evenly on the two edges of the logo?

    Now: After “Eskuvoi Filmek” (button) the space is bigger than after the logo.

    Best Regards,
    Zsolt

    #1361964

    Hi Zsolt,

    Try to replace the translateX value from -50% to -70% in your CSS code:

    #header .logo {
        left: 50%;
        transform: translateX(-50%);
        z-index:999;
    }

    Just adjust it as you see fit.
    Hope it helps.

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.