Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1166342

    Hello Enfold team,

    I tried to use the enfold solution to have a centered logo and a menu left and right. This is the code is used:

    /* 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;
    }
    }

    The Problem is, that the logo gets shrinked with this solution.
    Because of that I tried:

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

    Now the logo has the right size but it overlays the menu items.

    I would like to have a large logo and the menu items on the very right and left.

    Greetings
    Felix

    #1166415

    Hi,

    Could you please post a link of your website so we can see the issue? :)

    Cheers!
    Yigit

    #1166500

    Hey Yigit,

    Thank you for the quick answer!
    you find a temporary login in the private Content :)

    #1167130

    Hi,

    Thank you for the update.

    You can adjust the right margin of the “About” menu item.

    #top #header .av-main-nav li:nth-child(3) {
            margin-right:150px;
    }

    Try to set it to 250px.

    #top #header .av-main-nav li:nth-child(3) {
    	margin-right: 250px;
    }

    Best regards,
    Ismael

    #1167180

    Thank you Ismael!

    That worked perfectly!

    Greetings Felix

    #1167213

    Hi,

    Glad Ismael could help! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Logo centered and menu left and right’ is closed to new replies.