New Landing How can we help? Atelier Submenu no longer centred after making menu full-width

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #325582
    orangesandlime
    Member
    Post count: 20

    Hello!
    I used one of your custom css codes to make the menu ( 4 ) full width – even though it was set to be in the theme options, the menu was still contained. This is the code I added:

    .header-6 .container {
        width: 100%;
    }

    After doing this, the submenu displays to the left and is no longer centred.

    The menu needs to be full-width as I need to be able to add more links. How can I achieve both please?

    Thank you very much for your time,
    Nancy

    #325816
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Add the code below to your custom css option.

    li.menu-item.sf-mega-menu.sf-mega-menu-fw > ul.sub-menu {
        margin-left: 8%!important;
    }

    -Rui

    #325924
    orangesandlime
    Member
    Post count: 20

    Thank you very much for getting back to me, Rui!

    Now, while this may work on my screen ( iMac 27″ ), on smaller screens this solution puts the menu too far to the right. Is there no solution that will fix this across all screen sizes please?

    Thank you so much for your time,
    Nancy

    #325926
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Add also this code below to resolutions lower than 1280, you can repeat this rule and replace 1280 by a lower value to have different margin-left values in the different screen resolution.

    @media only screen and (max-width: 1280px){
        li.menu-item.sf-mega-menu.sf-mega-menu-fw > ul.sub-menu {
            margin-left: 4%!important;
       }
    }

    -Rui

    #325931
    orangesandlime
    Member
    Post count: 20

    I may have to fiddle with the values to get it right, but I get the concept.
    Thank you for your help!

    Nancy

    #325934
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Let me know if necessary.

    -Rui

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register