Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1304454

    Hi,

    I have a 5-column Mega Menu highlighting 5 items/pages, beginning with an image, then title then brief description.

    Although it looks really nice, what’s happening is the images are different sizes. the first and the last one a little larger then the 3 in between. All images are, in fact, the same size, 500 x 333 pixe.s

    Is there a way to force all images to be the same size in the mega menu?

    Thanks so much,
    https://balsamtours.com/bypass

    #1304780

    Hey Eleina_Shinn,

    Thank you for the inquiry.

    Adding this css code should limit the width and height of the images inside the mega menu and align them correctly. We also added a 20px margin below the images to move the text downwards a bit.

    #menu-item-71 .avia_mega5 .menu-item img {
        max-width: 240px;
        margin-bottom: 20px;
    }
    

    Let us know if that helps.

    Best regards,
    Ismael

    #1304796

    or escape enfold settings – with different padding for first and last li.

    Try this instead in your quick css:

    #top #wrap_all #header .avia_mega_div > .sub-menu {
        display: flex !important;
        flex-flow: row nowrap;
        justify-content: space-around;
        padding: 2% 1% !important;
    }
    
    #top #header .avia_mega_div li {
        flex: 0 1 18%;
        width: unset !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #top #wrap_all #header .avia_mega_div > .sub-menu > li img {
        transition: 0.3s all ease;
        margin-bottom: 10px
    }

    and if you like to have some hover indicators on that try in addition:

    #top #wrap_all #header .avia_mega_div > .sub-menu > li:hover img {
        transform: scale(1.05);
        transition: 0.7s all ease;
        margin-bottom: 20px
    }
    #1304859

    believe it or not – my solution works better.
    look at the current page at narrower screen width:

    remove the rules from Ismael and try it out ;)

    SEE general solution next

    • This reply was modified 3 years, 3 months ago by Guenni007.
    #1305031

    just besides the mega div with 5 columns – here are more general css code:

    NOW : we have to see what happens to these rules when there is a second row underneath the first.

    edited code to fit for new row in that mega div:

    #top #wrap_all #header .avia_mega_div > .sub-menu {
        display: flex !important;
        flex-flow: row nowrap;
        justify-content: space-around;
        padding: 2% 1% !important;
    }
    
    #top #header .avia_mega_div li {
        width: unset !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /*** settings for different mega_div ***/
    #top #header .avia_mega_div li.avia_mega_menu_columns_6 { flex: 0 1 14% }
    #top #header .avia_mega_div li.avia_mega_menu_columns_5 { flex: 0 1 18% }
    #top #header .avia_mega_div li.avia_mega_menu_columns_4 { flex: 0 1 23% }
    #top #header .avia_mega_div li.avia_mega_menu_columns_3 { flex: 0 1 31% }
    #top #header .avia_mega_div li.avia_mega_menu_columns_2 { flex: 0 1 48% }
    
    #top #header .avia_mega_div li > .mega_menu_title { 
        display: inline-block;
        margin-bottom: 0 !important
    }
    
    #top #header .avia_mega_div li > .mega_menu_title a { 
    	display: inline-grid;
        overflow: hidden !important;
    }
    
    #top #wrap_all #header .avia_mega_div > .sub-menu > li img {
        margin-bottom: 15px !important; 
        -webkit-filter: saturate(0.2);
        filter: saturate(0.2);
    }
    
    /*** just to have some indicators for hovering ***/
    #top #wrap_all #header .avia_mega_div > .sub-menu > li:hover img {
        -webkit-filter: saturate(1);
        filter: saturate(1);
    }

    see Mega Menu on page: https://consulting.webers-testseite.de/

    #1305038

    By the way: how did you style this menu ?
    That the sub-menu levels of the mega-menu title did not have an anchor?

    Edit : oh i see – didn’t recognize that option on description

    #1305095

    Oh my gosh, I can’t tell you how much I appreciate all of your help with this! (you must have a special place in your heart for the Holy Land?

    Thank you , Thank You, !!!

    I didn’t do the section part, with two rows – so if they do come up with more tours, your suggesting I place new tours right under same column right?

    I honestly can’t tell you how much I appreciate all of your help!

    ~e

    #1305114

    You see here: https://kriesi.at/support/topic/make-all-mega-menu-images-the-same-size/#post-1305031 that the space for calculating how many list points are next to each other is only made for the row. I assume that the classe at the mega-div itself depends on the maximum value of columns.
    In a row, the list points then have a class that determines how many columns are next to each other.
    So if you decide to start a new row – this code will work for the most circumstances.

    #1305123

    I do believe you are brilliant! Thank you Thank you!

    Question, is it in the works at all for Enfold to make Header Option changes, like the ability to make a custom header just like you can for the footer?

    #1305138

    Can you be more specific about what you want to achieve?

    #1305630

    Well, there are so many things I’d like to achieve in terms of the header

    For example, just look at a few of the header samples and all the capability the XTRA theme has:

    When I have a local client, and CTA’s need to be in the Header, Enfold is just too cumbersome to create a custom header and change it around.

    So I just wondered if more header customization might be in the works for the future, mainly because I prefer to use Enfold, but must choose other themes sometimes when I need more flexibility and ease in that area of the site.

    #1306126

    I like in particular the navigation, which creates a top level menu item in which omitted menu items are collected as a submenu. Only when it no longer works, the hamburger is offered as an alternative menu.

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